1
0
mirror of https://github.com/k88hudson/git-flight-rules.git synced 2025-03-10 12:48:43 -03:00
This commit is contained in:
Christophe Naud-Dulude 2014-07-30 14:59:12 -07:00 committed by Joe Block
parent f160a96ef6
commit 6526fc148f

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