Skip to content

Instantly share code, notes, and snippets.

@cmmartin
Created October 5, 2015 21:43
Show Gist options
  • Save cmmartin/163e0c999024520f9824 to your computer and use it in GitHub Desktop.
Save cmmartin/163e0c999024520f9824 to your computer and use it in GitHub Desktop.
Never accidentally commit console.log again
gitadd() {
git diff | grep "console.log" || git add $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment