diff options
-rw-r--r-- | .gitconfig | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -5,6 +5,12 @@ [alias] ai = add -ip c = commit -s + ci = "!git_ci() {\ + git checkout-index --temp -- \"${@/#/$GIT_PREFIX}\"\ + | xargs -I {} sh -c '_do() {\ + mv \"$1\" \"${GIT_PREFIX}.checkout-$(basename \"$2\")\";\ + }; _do {}';\ + }; git_ci" g = log --grep gg = log -p --grep dh = diff HEAD |