How to Set Up GitPages within GitHub quick Git getting started guide local to GitHub files

How to Set Up GitPages within GitHub quick Git getting started guide local to GitHub files

Git and GitHub Pages Quick Setup Guide

No alt text provided for this image

Go to https://github.com/ and create an account.?Then setup a new repository.?Click the Green Code button in the drop down menu to get the HTTPS URL for the repo.?You will need this to clone the repo to your local machine.

No alt text provided for this image

Open your editor, I am using https://code.visualstudio.com/ which comes with a built-in terminal making it easy to connect to GitHub.?Create a folder to organize your files, download and install git on your machine.?To check if git is on your local machine type git –status which should return the version of git on your machine.?If not go to https://www.git-scm.com/downloads and download the necessary setup files for git.

To clone your repo use the git command with your URL

git clone https://github.com/svekis1/myPages.git

No change directory (cd) to the directory of your git repo on your local machine.?Using ls/dir to check to ensure you are in the correct folder in the terminal.

Now create an index.html file that will serve as your landing page for the gitPages.?Update and setup your HTML for the gitHub Page.

Once ready add the new updates to the staging environment locally, using git status check that files are added.?Next commit the files using commit.

git add --all

git commit -m "Updated"

git push

Open your github account and check that the files are now updated in the repo.?Under the settings tab select Pages in the left hand side menu.

No alt text provided for this image

Select the source and then the branch to use.

No alt text provided for this image

Wait a couple minutes for the gitHub page to be setup.?The link is now at the top of the Pages, page.?Click the link to visit the site, any changes you make locally now can be pushed to the GitHub repo and they will be reflected shortly on your GitHub Page.

No alt text provided for this image
Scott Dray

Digital Marketing Manager at Fiverr

2 年

hi thanks for sharing your time with me I really appreciate it. I hope my text doesn't get you mad . I would like to share my ideas concerning Shopify that I have used for. My past client and this has been helping them to get sales and meeting up with their clients and this has been helping them to get sales,200_400sales daily with six figure income daily, and meeting up with their target goal. Would you like to listen and Share ideas

回复
Scott Dray

Digital Marketing Manager at Fiverr

2 年

This will help me

回复
MD. SUJUN PRODHAN

WordPress Web Design ?? Development ?? SEO ?? E-commerce Specialist?? YouTube ?? Social Media Marketing ?? Expert in Google Ads Crafting Engaging Online Experiences to Drive Revenue

2 年

Great share ??

要查看或添加评论,请登录

Laurence Svekis ?的更多文章

社区洞察

其他会员也浏览了