2017-02-01 5 views
1

У меня есть git-info, который является частью git-extras. Я на самом деле хочу знать удаленное хранилище URL -Есть ли эквивалент hg для git-info?

┌─[[email protected]] - [~/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 <[email protected]> 

    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 
[email protected] 
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 

Я пытался, если есть что-то из сторон, но рт.ст. подошел пустой :(

Любых идеи, как кто-то, чтобы получить информацию удаленного репо на CLI в ? Hg/ртутный экземпляр

Я смотрю на https://blogs.atlassian.com/2012/02/mercurial-vs-git-why-mercurial/, но не смог найти эквивалентную команду

ответ

3

Если все, что вы хотите, является URL-адрес:.

$ hg paths 
default = https://www.mercurial-scm.org/repo/hg 

См. hg help paths, hg help urls и hg help config.

Смежные вопросы