Skip to content

Instantly share code, notes, and snippets.

@SylvainJuge
Last active October 7, 2016 13:52
Show Gist options
  • Save SylvainJuge/0e82103112e6ed6b6e925bf98cf919d8 to your computer and use it in GitHub Desktop.
Save SylvainJuge/0e82103112e6ed6b6e925bf98cf919d8 to your computer and use it in GitHub Desktop.
prevent your colleagues from using "git add ."
# 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