How to run a remote git command?

How to run git command on a remote computer? I want to run git show or git log on a remote computer. how to run a command similar to disruptive? What is your decision? Update: For example, I have a server that can connect to it via ssh or HTTP, and my source code is stored on this server. I want the ruby ​​command to use the git command to program access to the change set parameter programmatically without cloning.

-2
source share
1 answer

If you literally want to run the command remotely, do it via SSH:

 ssh username@host "cd my/repo/path && git show" 
+5
source

Source: https://habr.com/ru/post/972557/


All Articles