diff --git a/plugins/git/README.md b/plugins/git/README.md index f62d26fe8..8f53ea21d 100644 --- a/plugins/git/README.md +++ b/plugins/git/README.md @@ -16,6 +16,8 @@ This README provides instructions on how to use the provided aliases and shell f - `gaa`: Shortcut for `git add --all`. Adds all changes, including untracked files, to the staging area. - `gc`: Shortcut for `git commit`. Commits changes to the repository. - `gca`: Shortcut for `git commit --all`. Commits all changes to the repository. +- `gcam`: Shortcut for `git commit --all --message`. Commits all changes to the repository with a specified message. +- `gcanm`: Shortcut for `git commit --all --no-verify --message`. Commits all changes to the repository without precommit hook with a specified message. - `gcmsg`: Shortcut for `git commit --message`. Commits changes with a specified message. - `gd`: Shortcut for `git diff`. Shows changes between commits, commit and working tree, etc. - `gdca`: Shortcut for `git diff --cached`. Shows changes between staged and last commit. diff --git a/plugins/git/git.plugin.sh b/plugins/git/git.plugin.sh index 289649d08..74c26fec5 100644 --- a/plugins/git/git.plugin.sh +++ b/plugins/git/git.plugin.sh @@ -175,6 +175,8 @@ alias gca='command git commit --verbose --all' __git_complete gca _git_commit alias gcam='command git commit --all --message' __git_complete gcam _git_commit +alias gcanm='command git commit --all --no-verify --message' +__git_complete gcanm _git_commit alias gcan!='command git commit --verbose --all --no-edit --amend' __git_complete gcan! _git_commit alias gcans!='command git commit --verbose --all --signoff --no-edit --amend'