Host .com.np Domain in Github

 ·       .com.np gives only name severs only.

·       For storage we used github,  github gives IP Address only.

·       We can't connect name server  to IP Address.

·       For Connecting name severs and IP Address we have to use another things i.e cloudflare .

Steps:

·       Open cloud flare website by using giving URL : cloudflare.com .

·       Click on Login.

·       Click on Signup.

·       Type Email & Password . Note Password Should be different to Gmail password. Eg. Nepal@123

·       Open Your Gmail ID.

·       Search Mail from cloud flare

·       Click on Verify link.

·       Type Email & Password that you have created.

·       Click on Signup.

·       Click on Add a website or Application.

·       Type your Domain. For Eg: chaudharysanjay7.com.np

·       Click on Continue.

·       Click on Free.

·       Click on Continue.

·       Click on Add record.

 

Type

Name

Target

CNAME

chaudharysanjay7.com.np

www.chaudharysanjay7.com.np

·       Click on Save.

·       Again click on Add record.

Type

Name

Pv4 address

A

www

185.199.108.153

·       Click on Save.

·       Again click on Add record.

Type

Name

Pv4 address

A

www

185.199.109.153

·       Click on Save.

·       Again click on Add record.

Type

Name

Pv4 address

A

www

185.199.110.153

·       Click on Save.

·       Again click on Add record.

Type

Name

Pv4 address

A

www

185.199.111.153

·       Click on Save.

·       Click on Continue.

·       You have to change name server form register.com.np .

·       Login Your ID.

·       Click on Active Domain Tab.

·       Click on Edit DNS

·       Type: Name Server:

Primary Name Server

galilea.ns.cloudflare.com

Secondary Name Server

jermaine.ns.cloudflare.com

·       After Editing  DNS

·       Click on Edit DNS .

·       Go to cloud flare website.

·       Click on Done,Check nameservers .

·       Click on Get Started.

·       Click on Save.

·       You have to Always Use HTTPS ON.

·       Click on Save.

·       You have to Brotli ON.

·       Click on Save.

·       Click on Finish.

For Setup github.

·       Open cloud flare website by using giving URL: https://github.com/

·       Click on Signup.

·       Type Email id In Enter Your email box.

·       Click on continue.

·       Type Password In Create a password* box. eg : Nepal@tkp123

·       Type Username in Enter a username* box. eg : itcom123

·       Tick mark on Receive occasional product updates and announcements.

·       Click on Verify.

·       Solve Captcha Image.

·       Click on submit.

·       Then github send OPT code in your Gmail.

·       Open your Gmail Account.

·       Copy OPT code from Gmail & Paste code in github website.

·       After submitting OTP code github asked you Question & you have to give answer.

·       Click on Continue.

·       Click on Continue for free.

·       Click on Create repository.

·       You have entered repository. Eg. potfolio-website

·       Select public.

·       Click on Create repository.

·       After that you have to install git in your pc.

·       For downloading Git in your pc . type URL :https://git-scm.com/

·       Click on Download for Windows.

·       Click here to download

·       Open download folder from your pc.

·       Right click on setup file & Choose Run as Administrator.

·       Click on Next & Next.

·       Click on Finish & Close.

·       Open Your Project Folder.

·       Right click on blank space area.

·       Choose Open Git Bash here.

·       The type the given command.

í git init               [initialization process]

í git add .             [for add folder in github]

í git commit –m "add files"      [helps to upload folder]

í git branch -M main   [add data on potfolio-website Projectory]

í git git remote add origin https://github.com/itcomputertkp/potfolio-website.git               [give url where to upload file in your Projector]

í git push -u origin main   [for uploading process]

·       After that github ask your browser for authentication.

·       Then click on sign in with your browser.

·       Click on Authorize git-ecosystem.

·       Again open your git application & type the command.

í git push -u origin main

§  if any error found than type given command

í git checkout –b my-new-branch

í git add .

í git push –u origin my-new-branch

·       Refresh Your github browser.

·       Click on Setting

·       Click on Pages Tab.

·       Go to Branch tab.

·       Choose Main.

·       Click on Save.

·       Type you domain in Custom domain box. eg www.sanjaychaudhary7.com.np

·       Click on Save.

·       Refresh your website.

·       Your website will live. ( it takes some time 5-10 min to live your website.


Code for Git Hub.






If you have any doubts, Please let me know

Post a Comment (0)
Previous Post Next Post