Keeping your local repository in sync with GitHub

You can keep your local repository in sync with your remote repository as you make changes to either one. In Git, a remote is the server where your code is stored. In your case, that server is a repository on GitHub or GitHub Enterprise.

  • Syncing your branch

    As commits are pushed to your project on GitHub, you can keep your local copy of the project in sync by pulling from the remote repository.

Did this doc help you?Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.