-1

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.

Abolfazl Mahmoodi
  • 380
  • 1
  • 3
  • 20
  • 4
    please clarify or show examples what you mean by "running on a remote computer, similar to subversion" – eis Apr 26 '14 at 10:52
  • do you want to do it programmatically or just to see manually, for former Erik has already suggested to use ssh, for latter case the most easy way will be login to remote server using windows remote desktop or Remmina in linux and execute the command. – Ashish Gaur Apr 26 '14 at 11:00

1 Answers1

5

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

ssh username@host "cd my/repo/path && git show"
Erik Kaplun
  • 37,128
  • 15
  • 99
  • 111