Suppose I wish to clone a large git repo from a URL, if and only if a commit was made to master within the last n
(say 24) hours. I don't want to clone it, because that's rather time-consuming for such a large repo, nor do I wish to clone it once and then check e.g. git status periodically.
I want to be able to tell when the last commit was made prior to cloning. Is there a way of doing this in git? If not, what are my options? I know I can get the hash of the last commit via git ls-remote