这是我第一次尝试使用 github,所以请耐心等待..
目前,我正在通过 tortoise SVN 管理我的项目。
我已经在 github 上创建了一个存储库,并尝试通过 github 帮助中给出的说明上传自述文件
我尝试将现有的 svn 项目导入 github 存储库,但它给了我错误。 由于我是 github 的新手,我无法弄清楚......
有什么想法吗???
最佳答案
在调试证书验证错误之前,请注意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/