Learn

Great! Now that you’ve created a repo with the proper naming convention, let’s upload your site to GitHub.

We’ll use Git to push (upload) the contents of your site’s directory to your new repo.

To do so, we’ll first initalize a Git repository in your site’s directory.

Instructions

1.

In the terminal to the right, open a new tab.

Then, use the cd command to navigate to your site’s directory.

2.

Now that you’re inside of your site’s directory, initialize a Git repository with the following command:

git init

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?