Skip to content
Change the space into underscore.
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.rubocop.yml
.travis.yml
CHANGELOG.md
Gemfile
MIT-LICENSE
README.md
Rakefile
post_install_message.txt
space2underscore.gemspec

README.md

Space2underscore

Gem Version Build Status Code Climate Coverage Status Gem

What is space2underscore

Change the space into underscore. space2underscore is a useful command when you want to check out a branch.

Installation

Install it yourself as:

$ gem install space2underscore

Usage

From the command line:

1. e.g. Create the new branch

$ s2u new branch -c
=>  Switched to a new branch 'new_branch’

Run with --create or -c options.

2. e.g. Rename the already created a branch

$ git branch -m $(s2u renamed branch)

!! Cation !!

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.

Credits

You can’t perform that action at this time.