在你正在某个Git目录中工作时,如何获取该Git仓库的名称?是否有任何Git命令可以使用?
# I did check out bar repository and working in somewhere
# under bar directory at this moment such as below.
$ git clone git://github.com/foo/bar.git
$ cd bar/baz/qux/quux/corge/grault # and I am working in here!
$ git xxx # <- ???
bar
.git / description
- 如果不是所有Git主机都一致使用,那么这也是无用的。 - nhed