Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
150 views
Welcome To Ask or Share your Answers For Others

1 Answer

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

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...