How to check which repository a specific folder corresponds to

Go To StackoverFlow.com

1

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?

2012-04-03 21:58
by zebra


1

You can use:

git remote show origin
2012-04-03 22:02
by Stuart Golodetz


1

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.

2012-04-03 22:01
by Kovensky
Ads