Updated Squashing Commits (markdown)

yurydelendik 2012-10-04 08:45:13 -07:00
parent febc9a741b
commit 48b75dc3e8

@ -31,8 +31,8 @@ git checkout -B super-feature
git commit -e git commit -e
``` ```
1. Or, you just use rebase (let's say you have 5 commits to merge) 1. Or, you can use rebase. Let's say you have 5 commits to merge:
``` ```
git rebase -i HEAD~5 git rebase -i HEAD~5
``` ```
Change pick to squash for last four and update the commit message. Change `pick` to `squash` for last four and update the commit message.