Skip to content

Instantly share code, notes, and snippets.

@wjlafrance
Last active April 5, 2016 23:24
Show Gist options
  • Save wjlafrance/7c67028ca3196a0fce9c74cc4ddfddde to your computer and use it in GitHub Desktop.
Save wjlafrance/7c67028ca3196a0fce9c74cc4ddfddde to your computer and use it in GitHub Desktop.
Update github forks
# Clone forks into ~/dev/forks, add upstreams
$ cd ~/dev/forks
$ git clone [email protected]:wjlafrance/articles.git NSHipster-articles
$ cd NSHipster-articles
$ git remote add upstream [email protected]:NSHipster/articles.git
# Rebase origin/master on top of upstream/master
$ cd ~/dev/forks/NSHipster-articles
$ git fetch upstream
$ git checkout master
$ git rebase upstream/master
$ git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment