Subject: Re: Newbie experience with push over ssh

From: Joseph Wakeling <[email-masked]>
Date: Wed, 14 Feb 2007 16:29:58 +0000

Bill Lear wrote:
>> 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

Thanks very much.  And (should have asked this first ....) is it
possible to init a repo remotely, i.e. to use the git on my machine to
do init-repo on a directory accessed via ssh or ftp?  And if yes ... to
do other git commands similarly remotely?

The latter would be a slow and painful way of working, I imagine, but
might be useful.