A command line tool to format text into a git-friendly branch name.
- Clone the respository
cdinto the repository directory- Build the binary with
swift build --configuration release - Copy the binary from the build directory into your path:
cp -f .build/release/git-strip /usr/local/bin/git-strip
Strip text with: git-strip <text>:
$ git-strip "project hello world"
"PROJECT_hello_world" copied to pasteboard!
Use the --lowercase-first-word option if you want the entire branch name to be lowercased:
$ git-strip "hello world"
"hello_world" copied to pasteboard!