• RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

Displaying information about your git repository

Want to see information about your git repository?

Based on a discussion here Duane Johnson wrote a very useful bash script. I am using this script from months and would like to share with you. You can download this script here(git-info.txt (2649)).

You can also add an alias like below, so that I can be a accessed by a single command “gitinfo”

alias gitinfo="/home/akhil/git-info.txt"

When you run this script from your working copy it displays:

  • Remote URL
  • Remote Branches
  • Local Branches
  • Configuration (.git/config)
  • Most Recent Commit

Isn’t it useful, give it a try ;-)

2 Responses so far.

  1. [...] This post was mentioned on Twitter by Akhil Bansal, Codaset.com. Codaset.com said: Display full info round up of your git repo with one command http://bit.ly/3XHQPU [...]

  2. Nani says:

    Hi Jonathan, Nice post ! I was using the following line in my buldne: gem delayed_job , :git => git://github.com/collectiveidea/delayed_job.git’ but it didn’t work: it didn’t generate the migration file, so the rake db:migrate command wasn’t working. I used the following line in my buldne and after buldne install the migration file was created: gem delayed_job , ~> 2.1.4 Thanks a lot .Regards,Sergio Lima


Asset Pipeline has been extracted a...

The asset pipeline which was introduced in Rails 3.1, has ...

ClientSideValidations: Add/Map mode...

#/status/256699237230845952

Action and Page caching has been ex...

With the commit c82cf81f00f Action and Page caching has been extracted ...

turbo-sprockets-rails3: Speeds up ...

#/status/253420357841723393

EdgeRails: ActiveRecord::SessionSto...

With the commit 3324e28804 ActiveRecord::SessionStore is extracted out of Rails into ...

Asset Pipeline has been extracted a...

The asset pipeline which was introduced in Rails 3.1, has ...

ClientSideValidations: Add/Map mode...

#/status/256699237230845952

Action and Page caching has been ex...

With the commit c82cf81f00f Action and Page caching has been extracted ...

turbo-sprockets-rails3: Speeds up ...

#/status/253420357841723393

EdgeRails: ActiveRecord::SessionSto...

With the commit 3324e28804 ActiveRecord::SessionStore is extracted out of Rails into ...