Skip to content

Instantly share code, notes, and snippets.

@ankr
Last active August 29, 2015 14:03
Show Gist options
  • Save ankr/f85bbaf5c2fc88e60470 to your computer and use it in GitHub Desktop.
Save ankr/f85bbaf5c2fc88e60470 to your computer and use it in GitHub Desktop.
No `git add .`
git() {
if [[ $1 == 'add' ]] && [[ $2 == '.' ]]; then
echo "No no no no ... NO!!"
else
command git "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment