Skip to content

Instantly share code, notes, and snippets.

@ebroder
Created May 16, 2013 01:32
Show Gist options
  • Save ebroder/5588766 to your computer and use it in GitHub Desktop.
Save ebroder/5588766 to your computer and use it in GitHub Desktop.
git() {
if echo "$@" | grep -q commit &&
[ "$(command git config user.email)" = "" ]; then
echo "E: Please set user.email" >&2
return 1
fi
command git "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment