Permalink
Browse files

Add more git alias awesomesauce

  • Loading branch information...
1 parent 9af9be0 commit 48eeb3ec5c2e93af696d8e48ff8378e30141254a @leto committed Mar 28, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 config/.gitconfig
View
@@ -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,14 +37,18 @@
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
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

0 comments on commit 48eeb3e

Please sign in to comment.