Skip to content

Instantly share code, notes, and snippets.

@mystygage
Created October 30, 2012 16:27
Show Gist options
  • 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 [email protected]: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