Skip to content

oblakeerickson/branches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Branches

A simple command-line utility to list your git branches by date.

I've Googled way too many times how to list your git branches by date and since the command is too complicated to actually remember or type out I decided to make this a ruby gem that you can execute from the command line.

I tend to create a lot of branches, but I can never remember the exact names and typing git branch doesn't sort by date.

This is the stackoverflow page I kept referring to all the time.

Installation

Install it yourself as:

$ gem install branches

Usage

Just type:

$ branches

from the command line inside of a git repo.

If you have a lot of branches you can combine(pipe) branches with the head command like this:

$ branches | head

Contributing

  1. Fork it ( https://github.com/oblakeerickson/branches/fork )
  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 a new Pull Request

About

A command-line tool that lists git branches by date

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages