Skip to content

Instantly share code, notes, and snippets.

@chibani
Created December 1, 2015 15:00
Show Gist options
  • Save chibani/a142b7b91744ed5feaf2 to your computer and use it in GitHub Desktop.
Save chibani/a142b7b91744ed5feaf2 to your computer and use it in GitHub Desktop.
Git alias for creating new work branch with empty commit
[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