zebra
zebra

Reputation: 6531

How to check which repository a specific folder corresponds to

I have a couple very similar looking folders on my machine that correspond to different repositories stored on github.

How can I check the git address that a specific folder corresponds to?

Upvotes: 0

Views: 1401

Answers (2)

Stuart Golodetz
Stuart Golodetz

Reputation: 20616

You can use:

git remote show origin

Upvotes: 3

Jessidhia
Jessidhia

Reputation: 534

You can run git remote -v inside the folder in order to list the remotes registered with the local repository. The 'origin' remote is the one set up by 'git clone', so that's the one you' re looking for.

Upvotes: 1

Related Questions