Created
December 9, 2020 22:28
-
-
Save alexfu/48d8cd67ec6830af85a9619c8d33204c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Creates a new named bugfix branch in the following format: bugfix/xyz | |
# $1 - Name of the branch | |
# $2 - Base branch | |
BRANCH_NAME=bugfix/$1 | |
START_POINT=$2 | |
git checkout -b $BRANCH_NAME $START_POINT | |
git commit -m "Initial $BRANCH_NAME commit." --allow-empty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment