svn - 将现有的 svn 项目导入 github 存储库

标签 svn github git-svn

这是我第一次尝试使用 github,所以请耐心等待..

目前,我正在通过 tortoise SVN 管理我的项目。

我已经在 github 上创建了一个存储库,并尝试通过 github 帮助中给出的说明上传自述文件

我尝试将现有的 svn 项目导入 github 存储库,但它给了我错误。 由于我是 github 的新手,我无法弄清楚......

有什么想法吗???

erros while git svn clone to github repo

最佳答案

在调试证书验证错误之前,请注意GitHub page提及:

git-svn can be used to import as well. Note that there may be issues if you have branches or tags (they won’t be imported over). If you only have a trunk, like many svn repositories, this method should work for you without issue.

First, be sure to create your repository on GitHub

$ git svn clone -s SVN_REPO_URL LOCAL_DIR
$ cd LOCAL_DIR
$ git remote add origin <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fb9c928fbb9c928f938e99d5989496" rel="noreferrer noopener nofollow">[email protected]</a>:GITHUB_USERNAME/REPO_NAME.git
$ git push origin master

因此,git svn clone -s SVN_REPO_URL LOCAL_DIR 命令需要 SVN_REPO_URL(如“SVN”,而不是 Git)

https://github.com/healthpark/Healthpark.ca.git是 Git 存储库的名称,而不是 SVN 存储库的名称。

关于svn - 将现有的 svn 项目导入 github 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8787444/

相关文章:

svn - git-svn 上游状态检查

svn - 如何将本地代码恢复到以前的版本 svn

svn - 如何通过 git-svn 使用嵌套分支

svn - Mercurial 如何处理组件或模块化开发?

github - 如何删除 Github Desktop 上的本地分支?

git - 无法解析代理 - git clone

github - 在 GitHub wiki 页面上嵌入演示幻灯片

svn - git-svn merge 2 个 svn 分支

git svn fetch 然后提交到远程git

java - 在 svn 存储库中运行项目