Thank you Daniel. I was wondering if there is any way to get all the 
commits in the repository without cloning it first.

On Friday, November 8, 2019 at 10:59:02 AM UTC-5, Daniel Fanjul wrote:
>
> It includes all refs: heads, tags, remote tracking heads, and non standard 
> refs if present. It does not include all hashes of all commits present in 
> the repository.
>
> On Fri, Nov 8, 2019 at 3:43 PM mash <ma...@bu.edu <javascript:>> wrote:
>
>> My goal is to build a kernel from a repository and a commit/tag provided 
>> by a user, and I would like to know if the commit exists before I clone the 
>> whole tree and then realize,"ah, there so no commit with this id, they must 
>> have made a typo". 
>>
>> The best thing I have found is git ls-remote, but I am not sure it 
>> includes all the commits, tags or branches.
>>
>> I appreciate any help!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Git for human beings" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to git-...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/git-users/9b923a19-b0cb-46a4-bcec-1dac6347f2fc%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/git-users/9b923a19-b0cb-46a4-bcec-1dac6347f2fc%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/a1e3160d-f923-45a2-a1a4-b1b3faafbdf1%40googlegroups.com.

Reply via email to