Skip to content

Instantly share code, notes, and snippets.

@ZeroBugBounce
Created December 18, 2014 17:33
Show Gist options
  • Save ZeroBugBounce/63f2f688a0437ea24116 to your computer and use it in GitHub Desktop.
Save ZeroBugBounce/63f2f688a0437ea24116 to your computer and use it in GitHub Desktop.
Create a feature branch from current branch with descriptive name
feat() {
git checkout develop
git pull
git checkout -b feature/DEB-"${@// /-}"
}
@ZeroBugBounce
Copy link
Author

Handy for feature branches with descriptive names. You type:

feat "98765 this fixes that issue where the turboencabulator causes side fumbling"

and it will a) pull latest on the develop branch and b) create a branch from it like so (obviously the DEB- prefix or anything can be changed)

feature/DEB-98765-this-fixes-that-issue-where-the-turboencabulator-causes-side-fumbling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment