Joined May 2012
·
Posted to
Take a photo of yourself every time you commit
over 1 year
ago
@konamax123 yes you need to create it and make it executable chmod +x your-git-repo/.git/hooks/post-commit
. The content of the file is the ruby code posted on the protip.
Posted to
Take a photo of yourself every time you commit
over 1 year
ago
@konamax123 Git post-commit hook is at your-git-repo/.git/hooks/post-commit
. Make sure you chmod +x
it,
Achievements
2,323 Karma
112,387 Total ProTip Views
Kona
Have at least one original repo where CoffeeScript is the dominant language
Raven
Have at least one original repo where some form of shell script is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Altruist
Increase developer well-being by sharing at least 20 open source projects
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
T-Rex
Have at least one original repo where C is the dominant language
Ashcat
Make Ruby on Rails better for everyone by getting a commit accepted
Or you can add an alias in your ~/.gitconfig:
and execute: