gpt4 book ai didi

git - 是否有等同于 git-info 的 hg?

转载 作者:太空狗 更新时间:2023-10-29 14:43:39 25 4
gpt4 key购买 nike

我有 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 的东西,但结果是空的 :(

有人知道如何在 Hg/mercurial 实例中将远程 repo 信息获取到 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 帮助 urlshg 帮助配置

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com