Merge branch 'master' of ssh://dio.dreamhost.com/~/repos.nelsonferreira.com/git/sxema...
[sxemacs] / contrib / git-to-steve.sh
1 #!/bin/sh
2 #
3
4 USER_EMAIL=$(git config user.email)
5 if [ -z "$USER_EMAIL" ]; then
6     echo "You need to setup your email address with:"
7     echo "    git config user.email <your email address>"
8     exit 1
9 fi
10 USER_NAME=$(git config user.name)
11 if [ -z "$USER_NAME" ]; then
12     echo "You need to configure git with your name:"
13     echo "    git config user.name \"John Doe\""
14     exit 1
15 fi
16 git branch --track for-steve origin/master
17 git checkout for-steve