Created
January 9, 2018 12:30
-
-
Save Newlifer/eb625450e2e126def6664e7054f4efaf to your computer and use it in GitHub Desktop.
git-feature
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
#!/bin/bash | |
rootbranch=`git rev-parse --abbrev-ref HEAD` | |
milestone=${rootbranch:3} | |
featurebranch="$milestone/feature/$1" | |
git checkout -b $featurebranch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment