Re: Newbie experience with push over ssh
- From
- Joseph Wakeling <joseph.wakeling@webdrake.net>
- Date
- Feb 14, 2007, 16:29 UTC
- Message-ID
- <45D33906.2040905@webdrake.net>
- In-Reply-To
- <17875.14305.910866.273778@lisa.zopyra.com>
Bill Lear wrote:
Show 10 quoted lines
>> 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.