Reputation: 75
I know I can use
git log
to query logs at local.
But I want to execute a linux command at git server'repository to query logs.
Is there such a similar command I can use at git server?
Upvotes: 4
Views: 1653
Reputation: 30938
If you are allowed to log in to the server by ssh, you can use ssh
to run git log
.
Suppose the repository in the server is at /path/to/foo.git
.
ssh ${user}@${server_ip} git --git-dir=/path/to/foo.git log ${branch}
Upvotes: 2