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

main
Sorin Ionescu 12 years ago
parent bf957d7cc4
commit c737369083

@ -56,6 +56,7 @@ Aliases
- `gcO` checks out paths to work tree using the *HEAD* commit. - `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 - `gcf` amends the tip of the current branch using the same log message as
*HEAD*. *HEAD*.
- `gcF` amends the tip of the current branch.
- `gcp` applies changes introduced by existing commits. - `gcp` applies changes introduced by existing commits.
- `gcP` applies changes introduced by existing commits without committing. - `gcP` applies changes introduced by existing commits without committing.
- `gcr` reverts existing commits by reverting patches and recording new - `gcr` reverts existing commits by reverting patches and recording new

@ -48,6 +48,7 @@ alias gcm='git commit --message'
alias gco='git checkout' alias gco='git checkout'
alias gcO='git checkout HEAD --' alias gcO='git checkout HEAD --'
alias gcf='git commit --amend --reuse-message 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 --ff'
alias gcP='git cherry-pick --no-commit' alias gcP='git cherry-pick --no-commit'
alias gcr='git revert' alias gcr='git revert'

Loading…
Cancel
Save