0

There are many git repositories on my gitlab server, and I want to statistics their commit information. I have to clone every repository and run git log command within the directory. Its very slow and might damage my hard disks if the operations were frequently. So, if there was a way to get commit information online without clone the huge repositories?

I has not found a git command without a local repository and googled nothing for it

4

1 Answer 1

-1

If you have SSH access to the remote repository, you can use the git log command with the appropriate options to view commit history directly from the command line without cloning the entire repository. For example:

git ls-remote <repository_url>

This command will list all the references in the remote repository, including branches and commits.

Sign up to request clarification or add additional context in comments.

1 Comment

git ls-remote doesn't show log (list of commits); it only shows heads (tips of branches) and tags. As for SSH — the OP runs Gitlab so has Git+SSH access, bit no SSH access to run commands.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.