We can use git ls-remote command to get the list of commits of a given git repo e.g. this discussion
This command takes us quite a long time for the repo that has big list of commits/tags - we are looking for a parameter for it and/or any other command to limit the number of returned rows e.g. only read the first 3 rows in the returned list.
How can we get to that?
p.s.
My google search and our site search is little helpful.