I have been given a git link to clone which is taking forever (even with --depth 1
). I'd like to have a mechanism whereby I can inspect all the files of the master branch without cloning. Is this possible?
git ls-remote doesn't produce what I need:
git ls-remote git@myproject.git
0b6b5758e91074c3598578de54fadbc6493f64b1 HEAD
0b6b5758e91074c3598578de54fadbc6493f64b1 refs/heads/master
Updated: Based on this rather old question that I just discovered (dated 2009, but latest answer update in 2016), it seems it is impossible, unless you have general ssh access to the instance to do an ls
, which I don't. I'm guessing that is still the current status as of 2018?