How to run git command on remote computer? I want to run git show
or git log
on remote computer. how to run command similar to subversion? what is your solution?
Update:
For example I have a server that can connect to it by ssh or over http protocol and my source code saved on that server. I want to access to change set detail programmatically by ruby via git command without cloning.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
If you literally want to run the command remotely, do it over SSH:
ssh username@host "cd my/repo/path && git show"