From 48eeb3ec5c2e93af696d8e48ff8378e30141254a Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Wed, 28 Mar 2012 09:59:38 -0700 Subject: [PATCH] Add more git alias awesomesauce --- config/.gitconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/.gitconfig b/config/.gitconfig index 377123c..1194297 100644 --- a/config/.gitconfig +++ b/config/.gitconfig @@ -9,15 +9,20 @@ spread = !git push --tags origin HEAD && git push --tags leto HEAD a = add + addp = add --patch + axe = !sh -c 'git log -S"$0"' back = checkout - b = branch c = commit co = checkout + clone-shallow = clone -depth -5 cudgel = clean -fdx detach = checkout @{0} + delete = delete = !sh -c 'git push "$0" :refs/heads/"$1"' # delete remote branch with git delete foo faster = repack -a -d -f --window=200 --window-memory=1g f = fetch flog = reflog + fold = merge --no-ff hist = log --pretty=format:'%C(yellow)%h%Creset %s %Cred%an%Creset %Cblue%d%Creset %Cgreen%cr%Creset %cd' --graph --all h = log --pretty=format:'%C(yellow)%h%Creset %s %Cred%an%Creset %Cblue%d%Creset %Cgreen%cr%Creset %cd' --graph --all last = cat-file commit HEAD @@ -32,7 +37,9 @@ sha1 = rev-parse s = status sup = !git stash && git svn rebase && git stash pop + staged = diff --cached up = !git stash && git pull --rebase origin master && git stash pop + unstage= reset HEAD -- v = !git --version who = shortlog -se -- wip = stash @@ -40,6 +47,8 @@ lazyrebase = !git stash && git pull --rebase && git stash pop unmerged = branch --no-merged + pull-all-submodules = submodule foreach "git checkout master && git pull origin master" + [core] excludesfile = ~/.gitignore editor = vim