Created
June 16, 2017 01:22
-
-
Save anthony2025/cd744be65385724150e2619d4258154e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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