Tutorial by Examples: autosquash

Given the following history, imagine you make a change that you want to squash into the commit bbb2222 A second commit: $ git log --oneline --decorate ccc3333 (HEAD -> master) A third commit bbb2222 A second commit aaa1111 A first commit 9999999 Initial commit Once you've made your change...
When committing changes it is possible to specify that the commit will in future be squashed to another commit and this can be done like so, git commit --squash=[commit hash of commit to which this commit will be squashed to] One might also use, --fixup=[commit hash] alternatively to fixup. It is...

Page 1 of 1