Skip to content

Instantly share code, notes, and snippets.

@Newlifer
Created January 9, 2018 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Newlifer/eb625450e2e126def6664e7054f4efaf to your computer and use it in GitHub Desktop.
Save Newlifer/eb625450e2e126def6664e7054f4efaf to your computer and use it in GitHub Desktop.
git-feature
#!/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