[Tutor] How to use Git from Windows PC for files on Solaris machine where Git cannot be installed?

Albert-Jan Roskam fomcl at yahoo.com
Wed Apr 29 21:24:37 CEST 2015


----- Original Message -----

> From: boB Stepp <robertvstepp at gmail.com>
> To: tutor <tutor at python.org>
> Cc: 
> Sent: Wednesday, April 29, 2015 7:12 PM
> Subject: Re: [Tutor] How to use Git from Windows PC for files on Solaris machine where Git cannot be installed?
> 
> On Wed, Apr 29, 2015 at 12:04 PM, Albert-Jan Roskam <fomcl at yahoo.com> 
> wrote:
>> 
>>  ------------------------------
>>  On Wed, Apr 29, 2015 4:21 PM CEST boB Stepp wrote:
>> 
>>> I now have Git installed on my Windows 7 PC at work. The files that I
>>> wish to put under Git version control exist on a Solaris 10
>>> workstation. In the Git bash provided, I can ssh into the Solaris 10
>>> machine. I also can the CuteFTP program on my Windows PC to
>>> move/copy/etc. files between the two machines. How can I put these
>>> Solaris files under version control under these circumstances? I
>>> thought I had conceptually seen how to accomplish this via ssh, but if
>>> it is doable, my limited knowledge of Git and ssh is insufficient to
>>> find the path of success.
>> 
>> 
>>  ... (3) install git if needed ...
> 
> It seems Git is needed, but I am not allowed to install it on the
> Solaris workstation. So is there a way around this?


Ouch, that sucks. When I said "if needed", I meant "if not already there". Maybe somebody knows a smart solution with rsync or with ftp. Still, then you'd run your tests on Windows, but the code is for Solaris.

 >>  But uhhm, this is not Python at all ;-)
> 
> I was hoping for clemency on this point due to the earlier thread(s) I
> started (Which included Python's unittest module.).


I *love* Git (well, that sounds *very* geeky!) so I don't mind at all.
Once you've got it running, you could install a commit hook that runs nosetests (or even tox).
That's just two lines (a shebang and a call to once of those scripts) and then your unittests will be run automatically every time you do a git commit. Nice! 


More information about the Tutor mailing list