From c7373690836a13fbadd84bbe5949c534db3fd7ca Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 20 Dec 2012 19:49:07 -0500 Subject: [PATCH] Add an alias to ammend a git commit, including the message --- modules/git/README.md | 1 + modules/git/alias.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/git/README.md b/modules/git/README.md index f3cf1ecb..6eeb3216 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -56,6 +56,7 @@ Aliases - `gcO` checks out paths to work tree using the *HEAD* commit. - `gcf` amends the tip of the current branch using the same log message as *HEAD*. + - `gcF` amends the tip of the current branch. - `gcp` applies changes introduced by existing commits. - `gcP` applies changes introduced by existing commits without committing. - `gcr` reverts existing commits by reverting patches and recording new diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 8d84d923..9af1c8a7 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -48,6 +48,7 @@ alias gcm='git commit --message' alias gco='git checkout' alias gcO='git checkout HEAD --' alias gcf='git commit --amend --reuse-message HEAD' +alias gcF='git commit --amend' alias gcp='git cherry-pick --ff' alias gcP='git cherry-pick --no-commit' alias gcr='git revert'