Created
December 1, 2015 15:00
-
-
Save chibani/a142b7b91744ed5feaf2 to your computer and use it in GitHub Desktop.
Git alias for creating new work branch with empty commit
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
[alias] | |
start = "!sh -c 'git checkout -b \"${0-workbranch}\" && git commit --allow-empty -m \"${1-start}\"'" | |
Usage : | |
git start | |
git start branch-name | |
git start branch-name "commit message" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment