Created
June 27, 2018 19:59
-
-
Save nanoxd/8500548894fd3d042c78e28c98e27d8b to your computer and use it in GitHub Desktop.
Clubhouse-Git integration
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
#!/usr/bin/env sh | |
#/ Usage: ch-init 123 | |
# Initializes the current branch to a ticket | |
if [ $# = "0" ]; then | |
printf 'usage: ch-init <ticket>\n' | |
exit 1 | |
fi | |
TICKET="$@" | |
git commit --allow-empty -m "🎉 Initial Commit [branch ch$TICKET]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions
put it in your custom bin directory if you have one or
/usr/local/bin
then,
chmod +x path/of/file/ch-init