0

Using GitPython locally is peace of cake, I need clone, pull, commit git repository on remote machine.

I know I can wrap bash/git commands with paramiko, but I need find out if there is any way to do it with GitPython objects, maybe with help another python2.7 library.

emcek
  • 459
  • 1
  • 6
  • 17
  • Why not upload your script onto the remote machine via SSH? – Colonel Thirty Two Feb 27 '16 at 17:51
  • Yes, I can. I just wonder how to operate on python objects and not scripts. – emcek Feb 28 '16 at 18:51
  • I don't think it's possible. But how about cloning repo to local machine, changing branch locally, and pushing it back to remote server? BTW, you even don't need a running git server on remote machine, just specify ssh://{user}@{host}/{path} instead of http/git repo address – Dmitriusan Mar 03 '16 at 16:58

0 Answers0