Skip to contentSkip to conversation

git remote show origin (URL)

DISCUSSION frankkany 4 participants 7 messages Jun 15, 2016

lore
Share & tools
lore

frankkany

author
#0 lore raw

On box (A), when using "git remote show origin", I'm used to seeing something like the following next to the FETCH/PUSH URL:
"[email protected]:somefolder/someproject.git"

The URL is actually pingable.

On box (B), when using "git remote show origin" on an unfamiliar project, the FETCH/PUSH URL is: "hidden-repos:repositories/mysteryproject.git".

How can I find where the actual url/directory where "hidden-repos" is pointing?

Thanks,

Frank

--
View this message in context: http://git.661346.n2.nabble.com/git-remote-show-origin-URL-tp6571492p6571492.html
Sent from the git mailing list archive at Nabble.com.

#1 lore raw
Quoted 11 lines · frankkany

On box (A), when using "git remote show origin", I'm used to seeing something like the following next to the FETCH/PUSH URL:
"[email protected]:somefolder/someproject.git"

The URL is actually pingable.

On box (B), when using "git remote show origin" on an unfamiliar project, the FETCH/PUSH URL is: "hidden-repos:repositories/mysteryproject.git".

How can I find where the actual url/directory where "hidden-repos" is pointing?

There might be a "Host hidden-repos" entry in your .ssh/config or /etc/ssh_config that maps the name to the actual hostname.

Ilya Bobyr

#2 lore raw
In reply to frankkany

Hello,

Quoted 11 lines · frankkany

On box (A), when using "git remote show origin", I'm used to seeing something like the following next to the FETCH/PUSH URL:
"[email protected]:somefolder/someproject.git"

The URL is actually pingable.

On box (B), when using "git remote show origin" on an unfamiliar project, the FETCH/PUSH URL is: "hidden-repos:repositories/mysteryproject.git".

How can I find where the actual url/directory where "hidden-repos" is pointing?

Maybe it is using an url.<base>.insteadOf that is set to "hidden-repos:", check it with "git config -l".

But here the output of "git remote show $repo" is with the actual url, not with the "hidden" ones, so not sure if it is your case.

HTH,
Santi

#4 lore raw
Quoted 2 lines · frankkany

I also checked the /etc/hosts file to make sure "hidden-repos" didn't point to another IP.

That name may only be valid in a certain network.

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#5 lore raw
In reply to frankkany
Quoted 5 lines · frankkany

On box (B), when using "git remote show origin" on an unfamiliar project, the FETCH/PUSH URL is: "hidden-repos:repositories/mysteryproject.git".

How can I find where the actual url/directory where "hidden-repos" is pointing?

That should be the actual repository address, where hidden-repos should be the host name, implicitly using git+ssh as the transport.

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
author
#6 lore raw

I appreciate everyone's help. Ilya Bobyr's suggestion worked. As Ilya suggested, it was defined in my ssh_config file.

=========================================
There might be a "Host hidden-repos" entry in your .ssh/config or /etc/ssh_config that maps the name to the actual hostname.

Ilya Bobyr

--
View this message in context: http://git.661346.n2.nabble.com/git-remote-show-origin-URL-tp6571492p6571875.html
Sent from the git mailing list archive at Nabble.com.