Given a GIT URI, how can I check it out?
-
18-09-2019 - |
Question
In this Google IO 2009 presentation, a GIT url is provided in the slides. The URL looks like this
http://android.git.kernel.org/?p=platform/development.git;a=commit;
h=a42091afb7b122c753f9050ff5dbcb792eb36a78
I want to check out the code, so I ran
git clone http://android.git.....rest...of....URI.shown..above
But git is aborting with the error fatal: http://android.git.kernel.org/?p=platform/development.git/info/refs not found: did you run git update-server-info on the server. Am I doing anything wrong ?
Solution
The right URL should be git://android.git.kernel.org/platform/development.git
as mentioned at the top of the web page your URL points to.
git clone git://android.git.kernel.org/platform/development.git
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow