Add default git hooks

This is a set of global, reusable git hooks that can be added to any git
project
This commit is contained in:
Nick Nisi
2013-07-27 10:58:35 -05:00
parent 12cce8e18d
commit 32e2d1f363
6 changed files with 35 additions and 22 deletions

View File

@@ -0,0 +1 @@
recent.post-merge

8
git/hooks/recent.post-merge Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
echo ""
echo ""
echo -e "\033[1m RECENT COMMITS \033[0m"
git log -n5 --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
echo ""
echo ""