Search⌘ K
AI Features

Pushing Code to GitHub

Understand how to link your local Git repository to a remote GitHub repository using git remote, and push your local code and commits with git push. This lesson teaches how to set up and verify remote connections and share your work effectively on GitHub.

We'll cover the following...

When you create a remote repository on GitHub, it will initially be empty. You will need a way to get your local repository to the remote repository on GitHub.

Git provides a convenient way to make this happen:

  • You will need to add the link of the remote repository to a local repository.
  • You will then push your code in the local repository to the remote one.

The git remote and git push commands let us do this, respectively.

Note: When you’re done configuring the new remote GitHub repository, you will be redirected to a page that ...