From 16a92a0f6a8dcbd38070547044d5aebf586885e2 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 29 Jun 2015 10:50:29 -0700 Subject: [PATCH] co->checkout git alias --- dotfiles/gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/dotfiles/gitconfig b/dotfiles/gitconfig index 5dd7270b..ffd6742d 100644 --- a/dotfiles/gitconfig +++ b/dotfiles/gitconfig @@ -10,6 +10,7 @@ clean-branches = "!r() { git branch --merged ${1-origin/master} | grep -v '*' | xargs -n1 git branch -d; }; r" clone = clone --recursive credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f" # Credit an author on the latest commit + co = checkout d = "!d() { git icdl $@; }; d" db = !"db() { git diff HEAD~"$1"; }; db" diff-excluding = "!f() { exclude=$1; shift; git diff $1 $2 --name-only | grep -v $exclude | xargs git diff "$@" --; }; f"