Revert 1fea66f2e27d2d067117c18f4ad9834cecc1c204 ... 4da254e29495f05da5aa4c097004c1cd5abb7f18 on Squashing Commits
parent
4da254e294
commit
5943422cf5
@ -38,4 +38,5 @@ git push --force origin super-feature
|
|||||||
1. Or, you can use rebase. Let's say you have 5 commits to squash and you don't have merge commits:
|
1. Or, you can use rebase. Let's say you have 5 commits to squash and you don't have merge commits:
|
||||||
```
|
```
|
||||||
git rebase -i HEAD~5
|
git rebase -i HEAD~5
|
||||||
```
|
```
|
||||||
|
Change `pick` to `squash` for last four and update the commit message in the editor.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user