Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
git current-branch
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib/git
spec
.gitignore
.tachikoma.yml
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
git-current_branch.gemspec

README.md

Git::CurrentBranch

Gem Version Build Status Code Climate Coverage Status Dependency Status

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
Something went wrong with that request. Please try again.