将 SVN 工作目录更改为自己的存储库

Change SVN working directory to own repository

所以我用 svn checkout <url> 检查了一个在线项目的存储库。但是,我显然不能承诺,因为它不是我的。如何将该工作副本转换为我自己的本地存储库?

颠覆不是 DVCS(像 git)所以你不能做你想做的(本地提交并推送到存储库)。更多信息请查看 this.

但是如果你想要 "fork" 存储库,你可以做到。您可以使用 svnrdump which dumps a remote repository. You can use this dump to create own repository and should checkout this with svnadmin load.

# dump the remote repository
svnrdump dump URL > dumpfile
# create an empty repository
svnadmin create /own/repository/path
# load the dumpfile into own repository
svnadmin load /own/repository/path < dumpfile
# checkout your locally repository
svn checkout /own/repository/path /your/checkout/dir

现在您可以提交更改并创建差异以将其作为补丁发送到原始存储库。