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:
1
git/hooks/recent.post-checkout
Symbolic link
1
git/hooks/recent.post-checkout
Symbolic link
@@ -0,0 +1 @@
|
||||
recent.post-merge
|
||||
8
git/hooks/recent.post-merge
Executable file
8
git/hooks/recent.post-merge
Executable 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 ""
|
||||
Reference in New Issue
Block a user