是否有等同于 git-info 的 hg?
Is there an hg equivalent to git-info?
我有 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 实例中将远程回购信息获取到 CLI 上吗?
我确实查看了 https://blogs.atlassian.com/2012/02/mercurial-vs-git-why-mercurial/,但找不到等效的命令。
如果您只需要 URL:
$ hg paths
default = https://www.mercurial-scm.org/repo/hg
参见 hg help paths
、hg help urls
和 hg help config
。
我有 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 实例中将远程回购信息获取到 CLI 上吗?
我确实查看了 https://blogs.atlassian.com/2012/02/mercurial-vs-git-why-mercurial/,但找不到等效的命令。
如果您只需要 URL:
$ hg paths
default = https://www.mercurial-scm.org/repo/hg
参见 hg help paths
、hg help urls
和 hg help config
。