A shell script to generate a branch name in a standard manner with:
- branch type
- slash
- description
- ticket number
- Download/copy the shell script
- Modify to your needs
sudo cp branch_gen.sh /usr/local/bin/branch_gen
sudo chmod +x /usr/local/bin/branch_gen
- create all branches with a given syntax
- clear usage of branch types
- add ticket reference for automations
- keep things readable and traceable
None, use it at your own risk ;) If you make an improvement, please sent it to me too!
- run
branch_gen
- fill the asked questions (use Enter to choose the default)
- the result will be in your terminal clipboard (middle mouse button and maybe Shift+Insert)
- modify it manually before creating the branch
- pass the branch types options to numbers
- use Env Vars
- add more options to branch types
- add more examples of subproject code
- allow several tickets
- copy
git checkout -b
to the clipboard
Some plugins may have problems with the '#' in the ticket code, so, you may add or remove it