From 1d0b0e2e9bfb7702c307c5e95b50f5b43d7ac380 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 3 Jan 2013 13:13:03 -0500 Subject: [PATCH] [Fix #357] Set alias gcO to check out hunks interactively --- modules/git/README.md | 2 +- modules/git/alias.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git/README.md b/modules/git/README.md index 6eeb321..3d87748 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -53,7 +53,7 @@ Aliases - `gca` stages all modified and deleted files. - `gcm` records changes to the repository with the given message. - `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 *HEAD*. - `gcF` amends the tip of the current branch. diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 9af1c8a..f152bb8 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -46,7 +46,7 @@ alias gc='git commit' alias gca='git commit --all' alias gcm='git commit --message' 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' alias gcp='git cherry-pick --ff'