Is there a way to svn co a local copy to a remote directory?
Is there a way to svn check out a local working copy to a remote directory?
Running the import command works:
svn import -m "Testing import" my-working-copy.dev svn+ssh://root@somedomain开发者_StackOverflow社区.com/root/my-working-copy
However, svn co doesnt:
svn co file://localhost/Library/WebServer/Documents/my-working-repo/trunk svn+ssh://root@somedomain.com/root/my-working-copy
And the error it outputs:
stdin: is not a tty
svn: No repository found in 'svn+ssh://root@somedomain.com/root/my-working-copy'
Assuming that you're not simply looking for svn commit
:
No, there is no way to do this just by using Subversion.
Workarounds:
- Since you already have ssh access to the remote machine, you can mount the remote repository locally using
sshfs
and check out like you would to local filesystem. - You can also check out locally then
scp
to remote machine. - You can connect to remote machine over ssh, and run a checkout against the repository on your local machine through svn+ssh.
All of this can be scripted of course.
Your svn
working copy is not a repository. You can do a checkout only from the repository and not from the working copy.
精彩评论