How to run git command remotely?

佐手、 提交于 2019-12-13 09:04:40

问题


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"


来源:https://stackoverflow.com/questions/23309796/how-to-run-git-command-remotely

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!