Last active
October 7, 2016 13:52
-
-
Save SylvainJuge/0e82103112e6ed6b6e925bf98cf919d8 to your computer and use it in GitHub Desktop.
prevent your colleagues from using "git add ."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make your colleages stop using "git add ." | |
# | |
# you should put this into usual alias file .bashrc, .zshrc or whatever you use | |
# - make sure path to git executable fits your setup (here on linux/ubuntu) | |
# - increate timeout if symptoms persist | |
git() { | |
if [[ $@ == "add ." ]]; then | |
echo "you shall use 'git add -p instead'" | |
echo ' ,' | |
echo ' /| __' | |
echo ' / | ,-~ /' | |
echo ' Y :| // /' | |
echo ' | jj /( .^' | |
echo ' >-"~"-v"' | |
echo ' / Y' | |
echo ' jo o |' | |
echo ' ( ~T~ j' | |
echo " >._-' _./" | |
echo ' / "~" |' | |
echo ' Y _, |' | |
echo ' /| ;-"~ _ l' | |
echo '/ l/ ,-"~ \' | |
echo '\//\/ .- \' | |
echo ' Y / Y ' | |
echo ' l I !' | |
echo ' ]\ _\ /"\' | |
echo '(" ~----( ~ Y. )' | |
sleep .5 | |
else | |
/usr/bin/git $@ | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment