Re: Newbie experience with push over ssh

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

 



On Wednesday, February 14, 2007 at 16:10:45 (+0000) Joseph Wakeling writes:
>Matthias Lederhofer wrote:
>> I don't think there is any way to 'clone to remote'.  You'd have to
>> ssh to the other machine and clone from there, or you can just create
>> an empty repository on the remote host and push the stuff into it.
>
>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.
>
>As far as I know I have no way of installing git on that machine.
>Perhaps I could install it locally but I suspect the sysadmin would not
>be supportive.
>
>So, is there a way of using git to upload my code to a machine without a
>repo ready-prepared?

If you must ...

% cat ~/.gitconfig
[alias]
	scp !scp
	rcp !rcp
% git scp -rp . me@remotehost:/directory


Bill
-
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]