Skip to content

Instantly share code, notes, and snippets.

@lardcanoe
Last active December 14, 2015 00:48
Show Gist options
  • Save lardcanoe/5001150 to your computer and use it in GitHub Desktop.
Save lardcanoe/5001150 to your computer and use it in GitHub Desktop.
Reset forked repo to match original (upstream) for a pull request http://scribu.net/blog/resetting-your-github-fork.html
git clone https://github.com/lardcanoe/repo.git
cd repo
git remote add upstream https://github.com/repo/repo.git
git pull --rebase upstream
git pull --rebase upstream devel
git checkout -b repo_branch origin
git add new_file
git commit
git push origin repo_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment