I've got a forked github repo on my machine, I'll call MYFORK
.
It was forked from a repo I'll call MAIN_REPO
Is there a generic way from the command line to find out where MYFORK
came from? ie the answer should be MAIN_REPO
, not the url to my fork on github.
I'm open to git or command line github specific solutions, and am interested in solutions that don't require me to have manually added an "upstream" at some point, as implied here.