Skip to content

Instantly share code, notes, and snippets.

@nanoxd
Created June 27, 2018 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanoxd/8500548894fd3d042c78e28c98e27d8b to your computer and use it in GitHub Desktop.
Save nanoxd/8500548894fd3d042c78e28c98e27d8b to your computer and use it in GitHub Desktop.
Clubhouse-Git integration
#!/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]"
@JacobFierro
Copy link

Instructions

put it in your custom bin directory if you have one or /usr/local/bin
then, chmod +x path/of/file/ch-init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment