'How do I get the last commit date of a remote repository without cloning using the basic git commands?

I need to get the date of the last commit (in seconds) from the remote repository without cloning it, and I need to do this with the basic git commands.

I can get the date of the last commit of the local repository in seconds using git log command, but I did not find how to do the same with the remote repository without cloning it.

git log -1 --format=%ct

I work in bash.

How can I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source