git没有类似svn中的’svn info’功能, 自己写一个脚本来实现这样的功能:
1 |
|
运行效果如下:
== Remote URL: origin https://danshan@bitbucket.org/danshan/haidaofm.git (fetch)
origin https://danshan@bitbucket.org/danshan/haidaofm.git (push)
== Remote Branches:
origin/HEAD -> origin/master
origin/master
== Local Branches:
* master
== Configuration (.git/config)
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://danshan@bitbucket.org/danshan/haidaofm.git
[branch "master"]
remote = origin
merge = refs/heads/master
== Most Recent Commit
commit 843423895f429aa6d78be1b2d26fb93472c64548
Author: Dan Shan
Date: Mon Oct 15 07:12:33 2012 +0400
webapi
[bugfix]
1. fix some import error of java
Type 'git log' for more commits, or 'git show' for full commit details.
Codes Here: https://gist.github.com/danshan/2e631fb9e7caff2d5a3880373086f7d2