This commit is contained in:
Christophe Naud-Dulude 2014-07-30 14:59:12 -07:00 committed by Joe Block
parent f160a96ef6
commit 6526fc148f
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ If you are working in a branch that is/will become a pull-request against `maste
(my-branch)$ git rebase -i master
```
If you aren't working against another branch you'll have to rebase relative to your `HEAD`. If you want to squish the last 2 commits, for example, you'll have to rebase against `HEAD~2`. For the last 3, `HEAD~3`, etc.
If you aren't working against another branch you'll have to rebase relative to your `HEAD`. If you want to squash the last 2 commits, for example, you'll have to rebase against `HEAD~2`. For the last 3, `HEAD~3`, etc.
```
(master)$ git rebase -i HEAD~2