Skip to content

Instantly share code, notes, and snippets.

@piercemoore
Created January 30, 2013 23:13
Show Gist options
  • Select an option

  • Save piercemoore/4678240 to your computer and use it in GitHub Desktop.

Select an option

Save piercemoore/4678240 to your computer and use it in GitHub Desktop.
A command to see how much profanity your team has used in all the commit messages for a repository.
git log --pretty=format:'%s' | tr '[:upper:]' '[:lower:]' | tr '[:space:]' '\n' | sort | uniq -c | sort -nr | grep -iE "(fuck|shit|bitch|damn|hate|ugly|stupid|asshole|moron|eff|worthless|piss)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment