Skip to main content

Get Git!

This is a walkthough of installing git and deploying your site through github pages.

Note: For terminal based instruction coming up, I will say "run $ cd ..". The $ syntax denotes running in your terminal or command line, so you don't have to type the $ or the space after it. Only type the words that follow.

  1. Create a Github account if you dont already have one.
  2. Download and Setup Git:
  • Follow the instructions found here
    • Be sure to select the operating system that you are running
  1. Log into your Github account and select the 'New Repository' icon near the top right of the screen.
  • Alternatively, go here
  1. Name your repository username.github.io, replacing username with your GitHub username. Be sure it is public and go ahead and tell GitHub to create a README file upon generating the repo.
  2. Copy the reposititory's address by clicking one of these buttons on the right: copy buttons
  3. In your computer's terminal, make sure you are in the same directory as the site you just built.
  • run $ git init
  • run $ git remote add origin COPIED_REPO_ADDRESS
  • rename your main HTML file to index.html if it is not already
  • run $ git push origin main
  • Check out this walkthrough if you get stuck

And Congratulations!

You personal site is now live at http://YOUR-USERNAME.github.io.

I hope these exercises are energizing. Feel free to reach out to the author at one of the social channels.