Skip to content

Instantly share code, notes, and snippets.

View SansSeryph's full-sized avatar

Kyla SansSeryph

View GitHub Profile
@minrk
minrk / rebase.md
Last active September 28, 2018 17:08

Splitting a pull request using git reset and git rebase

Proposition: we have a single branch first-branch that has two commits. This has been pushed to GitHub and an open pull request, but we want to revert that pull request to only include the first commit and open a new, separate pull request with the second commit. Our log looks like:

$ git log --oneline

67b58467 (HEAD -> first-branch) second commit
377539cf first commit