Add aliases for working with autosquash rebases

* Rename the `squash` alias to `prepare` to repurpose it.
* Change `squash` alias to `git commit --squash=<commit>`.
* Add `fixup` alias to `git commit --fixup=<commit>`.
* Set the `rebase.autoSquash` config option to `true`.
This commit is contained in:
2018-08-11 19:32:39 +01:00
parent 467789389a
commit 24f77fb550
6 changed files with 45 additions and 9 deletions

6
_git-fixup Normal file
View File

@@ -0,0 +1,6 @@
#compdef git-fixup
#description Prepare a commit for fixup during autosquash rebase.
_arguments '1: :__git_recent_commits'
# vim: ft=zsh