Skip to content

Instantly share code, notes, and snippets.

@mystygage
Created October 30, 2012 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mystygage/3981316 to your computer and use it in GitHub Desktop.
Save mystygage/3981316 to your computer and use it in GitHub Desktop.
Working with Forks

Initial steps

  • fork the repository
  • clone fork git clone git@github.com:mystygage/repo.git
  • add remote upstream git remote add upstream git://github.com/user/repo

Stay up to date

  • switch to master
  • git pull --ff-only upstream master
  • git push origin master

code code code

  • create new feature branch git ckeckout -b feature/branchName
  • stay up to date, then git rebase upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment