Skip to content

git post commit hook

Chakradhar Rao Jonagam edited this page Oct 23, 2017 · 1 revision

For doing some activity after commit is done. create this file

.git/hooks/post-commit

#!/bin/sh
open http://google.com
chmod +x .git/hooks/post-commit

commit something to git origin and you will see google will be opened.

Clone this wiki locally