git - 有没有相当于 git-info 的 hg ?

标签 git mercurial debian

我有 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 <<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="33525d415a56555573545e525a5f1d505c5e" rel="noreferrer noopener nofollow">[email protected]</a>>

    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
<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="24515741560a4149454d4819574c4d564d574c45431311644349454d480a474b49" rel="noreferrer noopener nofollow">[email protected]</a>
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

我尝试了是否有来自 Mercurial 方面的东西,但结果是空的:(

任何人有什么想法如何在 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 帮助路径hg 帮助 urlhg 帮助配置

关于git - 有没有相当于 git-info 的 hg ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41990861/

相关文章:

linux - 使用 Mercurial 必须使用 Mercurial Server 吗?

python - 导入错误 : No Module Named 'pysqlite2'

linux - 无法在目录 Linux Mint Debain Mate 中复制/粘贴

git - 如何从 git 推送中删除所有 .pdf 文件

git - 如何在不将新文件夹添加到master的情况下将新文件夹添加到git分支

git - cloudbuild.yaml 包含不同的云构建器配置

bash - 如何在没有GUI的情况下通过Debian中的Bash用VLC流式传输音频?

git - 如何用git fetch覆盖本地标签?

git - SVN 是否允许提交和推送?

version-control - Mercurial:在一个存储库中的分支之间 merge 一个文件