Add an alias to ammend a git commit, including the message

This commit is contained in:
Sorin Ionescu 2012-12-20 19:49:07 -05:00
parent bf957d7cc4
commit c737369083
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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'