Re: Newbie experience with push over ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joseph Wakeling <joseph.wakeling@xxxxxxxxxxxx> wrote:
> I remember coming across the same issue as Matthieu and never got round
> to solving it.  In my case the desire is to upload the code onto a
> remote machine---in particular a cluster where I run simulations.  I
> don't particularly need that remote code to be in a repo or otherwise,
> since it's only there to be run, not edited.

git archive --format=tar HEAD | ssh remote 'cd /some/where;tar xvf -'

You could put this in a shell script which takes the remote hostname,
path and optionally the revision to send..
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]