Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know if I a clone was done from fork or from origin on git?

I've cloned a repo months ago and would like to know if it was done from my fork or from the original repository. Which git subcommand should I run to get the answer?

like image 459
BreakPhreak Avatar asked Dec 04 '25 14:12

BreakPhreak


1 Answers

By default the origin remote will be the repository cloned from.

To see the list of remotes in the repository use git remote -v. This should be enough to know where it is was cloned from, but to see more details about a specific remote use git remote -v show <remote name>.

like image 121
David Culp Avatar answered Dec 07 '25 06:12

David Culp