sanemat/git-current_branch

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# Git::CurrentBranch

[![Gem Version](https://badge.fury.io/rb/git-current_branch.png)](http://badge.fury.io/rb/git-current_branch) [![Build Status](https://api.travis-ci.org/sanemat/git-current_branch.png?branch=master)](https://travis-ci.org/sanemat/git-current_branch) [![Code Climate](https://codeclimate.com/github/sanemat/git-current_branch.png)](https://codeclimate.com/github/sanemat/git-current_branch) [![Coverage Status](https://coveralls.io/repos/sanemat/git-current_branch/badge.png?branch=master)](https://coveralls.io/r/sanemat/git-current_branch) [![Dependency Status](https://gemnasium.com/sanemat/git-current_branch.png)](https://gemnasium.com/sanemat/git-current_branch)

Show current branch, check current branch is?


## Installation

Add this line to your application's Gemfile:

    gem 'git-current_branch'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install git-current_branch

## Usage

###Commands:

    git-current-branch help [COMMAND]          # Describe available commands or one specific command
    git-current-branch name                    # Print current branch name
    git-current-branch name_equal_to [BRANCH]  # Equal to branch name?
    git-current-branch version                 # Prints version information

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request