Created
August 2, 2012 10:08
-
-
Save masatomo/3236060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feature_branch() { | |
if [ "${1}" = "" ]; then | |
echo "${0} <new feature branch name>" | |
return | |
fi | |
branch_name="`date '+%d%m%y'`_${1}" | |
git co -b ${branch_name} master | |
git push | |
git branch --set-upstream ${branch_name} origin/${branch_name} | |
git pull | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment