Permalink
Browse files

Add updatehooks alias

  • Loading branch information...
1 parent 2c8ee3c commit da65d6e23036b2b87dd2f7ac2d7fad7e3ff90832 @ithinkihaveacat committed Jan 2, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 home/.gitconfig
View
@@ -21,6 +21,7 @@
svnpull = !git diff --no-ext-diff --quiet --exit-code && ( git svn fetch && git svn rebase ) || ( git stash && git svn fetch && git svn rebase && git stash pop )
svnpush = !git diff --no-ext-diff --quiet --exit-code && ( git svn dcommit ) || ( git stash && git svn dcommit && git stash pop )
resethard = reset --hard HEAD
+ updatehooks = !rm -rf $(git rev-parse --git-dir)/hooks && cp -a $CONFIGROOT/templates/hooks $(git rev-parse --git-dir)
# http://stackoverflow.com/a/10693888/11543
branch-by-date = for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short) %(committerdate:short) %(authorname)'

0 comments on commit da65d6e

Please sign in to comment.