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

发布于 2024-12-25 10:43:23 字数 310 浏览 5 评论 0原文

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

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

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

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

有什么想法吗???

git svn 克隆到 github 存储库时出现错误

this is my first time trying to use github so please bear with me..

Currently, I am managing my project through tortoise SVN.

I have created a repository on github and tried to uploaded a readme file through instructions given on github help

Iam tryin to import existing svn project to github repository and its giving me errors.
Since Iam new to github, I am unable to figure it out...

any idea????

erros while git svn clone to github repo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我ぃ本無心為│何有愛 2025-01-01 10:43:23

在调试证书验证错误之前,请注意 GitHub 页面 提到:

git-svn 也可以用来导入。请注意,如果您有分支或标签,则可能会出现问题(它们不会被导入)。如果您只有一个主干,就像许多 svn 存储库一样,此方法应该适合您,没有问题。

首先,请务必在 GitHub 上创建存储库

$ git svn clone -s SVN_REPO_URL LOCAL_DIR
$ cd LOCAL_DIR
$ git remote add origin [email protected]: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 存储库。

Before debugging the certificate validation error, please note that the GitHub page mentions:

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 [email protected]:GITHUB_USERNAME/REPO_NAME.git
$ git push origin master

So the git svn clone -s SVN_REPO_URL LOCAL_DIR command needs a SVN_REPO_URL (as in "SVN", not Git)

https://github.com/healthpark/Healthpark.ca.git is the name of a Git repo, not an SVN repo.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文