summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleks <aleks@einfach-aleks.com>2023-04-08 13:36:54 +0200
committerGitHub <noreply@github.com>2023-04-08 13:36:54 +0200
commitad99f0c164111fa3cfcbfc5b9cda321800541936 (patch)
treec8d7263cbc53b88e96726c6cf5bcb77b7dd1d56b /plugins
parente906a3130eb5031a2c82d9187ea17387881631db (diff)
downloadzsh-ad99f0c164111fa3cfcbfc5b9cda321800541936.tar.gz
zsh-ad99f0c164111fa3cfcbfc5b9cda321800541936.tar.bz2
zsh-ad99f0c164111fa3cfcbfc5b9cda321800541936.zip
feat(git): add merge squash alias (`gms`) (#10937)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/git/README.md1
-rw-r--r--plugins/git/git.plugin.zsh1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/git/README.md b/plugins/git/README.md
index 0895ce39c..f87d3fbca 100644
--- a/plugins/git/README.md
+++ b/plugins/git/README.md
@@ -116,6 +116,7 @@ plugins=(... git)
| gloga | git log --oneline --decorate --graph --all |
| glp | git log --pretty=\<format\> |
| gm | git merge |
+| gms | git merge --squash |
| gmom | git merge origin/$(git_main_branch) |
| gmtl | git mergetool --no-prompt |
| gmtlvim | git mergetool --no-prompt --tool=vimdiff |
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index ed17436e8..3c8d53c8c 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -237,6 +237,7 @@ alias gmtl='git mergetool --no-prompt'
alias gmtlvim='git mergetool --no-prompt --tool=vimdiff'
alias gmum='git merge upstream/$(git_main_branch)'
alias gma='git merge --abort'
+alias gms="git merge --squash"
alias gp='git push'
alias gpd='git push --dry-run'