【发布时间】:2017-02-01 22:16:45
【问题描述】:
我有 git-info,它是 git-extras 的一部分。我实际上是想知道远程存储库 URL -
┌─[shirish@debian] - [~/games/libcpuid] - [10328]
└─[$] git-info
## Remote URLs:
origin https://github.com/anrieff/libcpuid (fetch)
origin https://github.com/anrieff/libcpuid (push)
## Remote Branches:
origin/HEAD -> origin/master
origin/master
## Local Branches:
* master
## Most Recent Commit:
commit fa87a5e183a3809ded89ecb3efde4e94837c5736
Author: Veselin Georgiev <anrieff@gmail.com>
Fixed issue #78: date in changelog is wrong
Type 'git log' for more commits, or 'git show <commit id>' for full commit details.
## Configuration (.git/config):
user.name=Shirish Agarwal
user.email=shirishag75@gmail.com
core.editor=leafpad
core.excludesfiles=/home/shirish/.gitignore
core.gitproxy="ssh" for gitorious.org
merge.tool=meld
push.default=simple
color.ui=true
color.status=auto
color.branch=auto
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/anrieff/libcpuid
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
我试过是否有来自汞方面的东西,但结果是空的:(
关于如何在 Hg/mercurial 实例中将远程 repo 信息获取到 CLI 的任何想法?
我确实查看了https://blogs.atlassian.com/2012/02/mercurial-vs-git-why-mercurial/,但找不到等效的命令。
【问题讨论】: