Skip to content

Instantly share code, notes, and snippets.

@mondain
Created October 28, 2015 19:00
Show Gist options
  • Save mondain/458b936ccdcd61e6ea20 to your computer and use it in GitHub Desktop.
Save mondain/458b936ccdcd61e6ea20 to your computer and use it in GitHub Desktop.
Keeping your fork insync with a remote
Add the remote repo as "upstream"
git remote add upstream git@github.com:red5/red5-server.git
Get the remote repo
git fetch upstream
Ensure you're on your fork's master branch
git checkout master
Rebase with the remote master
git rebase upstream/master
Very first push of work on your fork may require -f
git push -f origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment