Skip to content

Instantly share code, notes, and snippets.

@bgrins
Created April 12, 2013 16:42
Show Gist options
  • Save bgrins/5373357 to your computer and use it in GitHub Desktop.
Save bgrins/5373357 to your computer and use it in GitHub Desktop.
Used this to clean up a branch in preparation for a pull request
git diff master > ~/Desktop/patch.patch
git checkout -b for-upstream remotes/upstream/master
patch -p1 < ~/Desktop/patch.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment