...

/

Pushing Code to GitHub

Pushing Code to GitHub

Learn how to push your code present in the local repository to 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 ...