Skip to content

Instantly share code, notes, and snippets.

@anthony2025
Created June 16, 2017 01:22
Show Gist options
  • Save anthony2025/cd744be65385724150e2619d4258154e to your computer and use it in GitHub Desktop.
Save anthony2025/cd744be65385724150e2619d4258154e to your computer and use it in GitHub Desktop.
# Tip: Keep your master branch pointing at the original repository and make pull requests from branches on your fork. To do this, run:
$ git remote add upstream https://github.com/kentcdodds/glamorous-website.git
$ git fetch upstream
$ git branch --set-upstream-to=upstream/master master
# This will add the original repository as a "remote" called "upstream," Then fetch the git information from that remote, then set your local master branch to use the upstream master branch whenever you run git pull. Then you can make all of your pull request branches based on this master branch. Whenever you want to update your version of master, do a regular git pull.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment