Git Remotes

In this lesson, you will learn how to push and pull to and from Git remotes like GitHub. You will learn Git concepts such as the `master` branch. You will also learn how to use commands such as `git clone` to clone a repository to make changes, `git revert` to switch to a specific commit, as well as other important commands for being productive with Git.

One of the most useful ways to use Git is in conjunction with GitHub, a website built on Git, but with a familiar GUI interface. Using Git with GitHub allows us to push our code to remote repositories. This enables us to:

  • Share our code with others and build a portfolio.
  • Collaborate with others on a project and build code together.
  • Download and use code others have created.

People can view your public repositories on your GitHub profile. Using GitHub is a great way to build a portfolio and get recruiters to notice you. For more information about getting started on GitHub, you can follow our installation tutorial

Remote repositories aren’t just useful for building a portfolio. Pushing to GitHub also allows us to collaborate with others on code. For example, thousands of different contributors are developing Linux on GitHub. Many companies, including Google and Facebook, also use GitHub to work on code projects across teams.

As you work through each concept, you’ll get to apply what you’ve learned from within your browser; there’s no need to use your own machine to do the exercises. The Python environment inside of this course includes answer-checking to ensure you’ve fully mastered each concept before learning the next.


  • Learn the benefits of using remote git repositories.
  • Learn how to make changes to the local and remote git repositories

Lesson Outline

  1. Introduction to Remote Repositories
  2. Making Changes to Cloned Repositories
  3. Overview of the Master Branch
  4. Pushing Changes to the Remote
  5. Viewing Individual Commits
  6. Commits and the Working Directory
  7. Switching to a Specific Commit
  8. Pulling From a Remote Repo
  9. Referring to the Most Recent Commit
  10. Takeaways

Get started for free

No credit card required.

Or With

By creating an account you agree to accept our terms of use and privacy policy.