-1

How to identify the Github url to the downloaded repository without having the Git installed on the system?

nikhil2050
  • 27
  • 5
  • 3
    I don't understand the question, sorry. GitLab and GitHub both show the link without cloning the repository. If you already have a clone, look in the `.git/config` file. Also, the text talks about "GitHub", but the tags include "GitLab" too – which one is it? – knittl Jan 15 '22 at 20:26
  • @nik Did you resolved your issue? – VonC Jan 18 '22 at 08:00
  • Thank you. I got the url mentioned in .git/config : [remote "origin"] url = forkUrl [remote "upstream"] url = repoUrl – nikhil2050 Jan 18 '22 at 13:22

1 Answers1

2

It depends on how you have downloaded the repository.

If you have used the "Download zip" file from a GitHub repository, you can get the sources without having Git installed, but you don't have the full history, and you don't have the .git/config with the remote URL in it.

So with just a copy of the sources, you cannot say for sure from which remote repository hosting site said sources are coming from.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250