Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Deploy Your Website to GitHub Pages

Add the Remote

Next, Git needs to know what repo will store your site's content.

In this case, the repo will be the one you created on GitHub earlier.

To specify the repo using Git, we'll have to add the remote and label it as the origin.

  1. The remote is the URL of the repo that will store your site's contents.

  2. The origin is an alias for the remote. You can think of an alias as an abbreviation or a substitute name. This means that instead of having to always type the lengthy remote URL over and over again, you can simply refer to it as origin later on.

In the terminal, you can add the remote with the following command:

git remote add origin https://github.com/your-user-name/your-user-name.github.io.git

In the example above, https://github.com/your-user-name/your-user-name.github.io.git is the remote URL that refers to the repository you created on GitHub earlier. Again, you would replace your-user-name with your actual GitHub username.

Note: Make sure that your remote's URL is typed correctly. Otherwise, you risk a failed deploy.

Report a Bug
If you see a bug or any other issue with this page, please report it here.