[Fix #357] Set alias gcO to check out hunks interactively

This commit is contained in:
Sorin Ionescu 2013-01-03 13:13:03 -05:00
parent 5a245850f0
commit 1d0b0e2e9b
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ Aliases
- `gca` stages all modified and deleted files. - `gca` stages all modified and deleted files.
- `gcm` records changes to the repository with the given message. - `gcm` records changes to the repository with the given message.
- `gco` checks out a branch or paths to work tree. - `gco` checks out a branch or paths to work tree.
- `gcO` checks out paths to work tree using the *HEAD* commit. - `gcO` checks out hunks from the index or the tree interactively.
- `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. - `gcF` amends the tip of the current branch.

View file

@ -46,7 +46,7 @@ alias gc='git commit'
alias gca='git commit --all' alias gca='git commit --all'
alias gcm='git commit --message' alias gcm='git commit --message'
alias gco='git checkout' alias gco='git checkout'
alias gcO='git checkout HEAD --' alias gcO='git checkout --patch'
alias gcf='git commit --amend --reuse-message HEAD' alias gcf='git commit --amend --reuse-message HEAD'
alias gcF='git commit --amend' alias gcF='git commit --amend'
alias gcp='git cherry-pick --ff' alias gcp='git cherry-pick --ff'