Skip to content

Instantly share code, notes, and snippets.

@hammerdr
Created December 14, 2011 01:01
Show Gist options
  • Save hammerdr/1474709 to your computer and use it in GitHub Desktop.
Save hammerdr/1474709 to your computer and use it in GitHub Desktop.
#!/bin/sh
USER=$(git config --global user.name)
EMAIL=$(git config --global user.email)
if [ -z "$USER" ]; then
echo "Please set your name in your git config:"
echo " git config --global user.name <name>"
exit 1
fi
if [ -z "$EMAIL" ]; then
echo "Please set your email in your git config:"
echo " git config --global user.email <name>"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment