Change the space into underscore. space2underscore is a useful command when you want to check out a branch.
Install it yourself as:
$ gem install space2underscore
From the command line:
$ s2u new branch -c
=> Switched to a new branch 'new_branch’
Run with --create
or -c
options.
$ git branch -m $(s2u renamed branch)
This is a command line tool. So DO NOT include space2underscore's module in other Ruby application because it uses system
command.
If you include this module to your application, there is a possibility of crackers attacking.
- Help information based on @motemen's ghq
- Installed information based on Tmuxinator