Its all about Ruby On Rails
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 (489)).
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
| Print article | This entry was posted by Akhil Bansal on November 12, 2009 at 6:39 pm, and is filed under Rails, Tips, bash, git, linux, scripts, tricks, ubuntu, utility scripts. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |