Skip to content

Instantly share code, notes, and snippets.

@jibiel
Created January 24, 2012 06:41
Show Gist options
  • Save jibiel/1668426 to your computer and use it in GitHub Desktop.
Save jibiel/1668426 to your computer and use it in GitHub Desktop.
Submitting github pull request for only latest/certain commit
# Taken from http://stackoverflow.com/questions/5256021/submitting-github-pull-request-for-only-latest-commit
git remote add upstream git://github.com/rsl/stringex
git fetch upstream
git checkout -b upstream upstream/master
git cherry-pick *sha1*
git push origin upstream
# Then you'll see your upstream branch on github, switch to it and submit the pull request with just the changes you want.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment