Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to get a copy of the commit log from a remote GIT repository without cloning/pulling it to my local machine and using only SSH. Is this possible?

For example, I want to do something like:

git log --

This will need to be generic. I know about the GitHub API (that was just an example); the command needs to work with any GIT repo that can be accessed over SSH.

share|improve this question

is this possible?

In short: no, not exactly. However, has a nice alternative to running an SSH command remotely on the machine where the git repository lives.

It won't work with any git repo, just those where you are able to execute SSH commands against.

share|improve this answer

It doesn't seem so (at least easily right now -- maybe I could extend Git to make this possible).

I wrote a small script which makes a shallow clone into a temporary project, then runs git log and then removes the directory again. THe shallow cloning should hopefully be fast.

The script is here:

share|improve this answer
If you make a shallow clone with depth of 1, you'll only have the most recent commit in the log. – Mixologic Aug 11 '14 at 4:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .