Browse Source

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

master
Sorin Ionescu 12 years ago
parent
commit
c737369083
  1. 1
      modules/git/README.md
  2. 1
      modules/git/alias.zsh

1
modules/git/README.md

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

1
modules/git/alias.zsh

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