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:
6
_git-fixup
Normal file
6
_git-fixup
Normal 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
|
||||
Reference in New Issue
Block a user