Skip to content

Instantly share code, notes, and snippets.

@chrisslater
Created November 12, 2013 16:59
Show Gist options
  • Save chrisslater/7434555 to your computer and use it in GitHub Desktop.
Save chrisslater/7434555 to your computer and use it in GitHub Desktop.
Rebasing the first two commits of a repository.

Original source can be found on StackOverflow.

A being the first commit:

git rebase -i A

It is possible to start like that if you continue with edit rather than squash:

edit e97a17b B
pick asd314f C

then run

git reset --soft HEAD^
git commit --amend
git rebase --continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment