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?
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>.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With