将存储库复制到新存储库中的最佳方法是什么?

发布于 2025-01-30 01:45:00 字数 283 浏览 4 评论 0 原文

我有一个存储库A,我想将其复制到一个新的存储库B中。做到这一点的最佳方法是什么?

我知道我可以使用命令 git push -mirror https://github.com/从存储库目录中的目录中它。

是否有更好或更直接的方式,涉及克隆或分叉?我无法从< myAccount>/a < myaccount>/b

I have a repository A that I would like to copy into a new repository B. What is the best way to do this?

I know that I can use the command git push --mirror https://github.com/<account>/B.git from inside the directory of repository A. This is one way of doing it.

Is there a better or more straightforward way, involving cloning or forking? I'm unable to fork a repository from <myaccount>/A to <myaccount>/B.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文