有这方面的最佳实践吗?我在想要么
创建一个 repo,将原始 repo 添加为上游 remote
创建一个“镜像”repo,然后 fork 那个
创建一个“镜像”repo,然后创建一个“主题分支”
其他
最佳答案
这就是我最终做的:
在 GitHub 上创建新的 repo
克隆新的 repo
git clone git@github.com:svnpenn/spoon-knife.git
从原始仓库添加源代码
cd Spoon-Knife git remote add upstream git://spoon.com/knife.git git fetch upstream git merge upstream/master
将原始源码推送到新的repo
git push origin master
此时您可以开始提交自己的源代码了!
关于git - 如何在 GitHub 上 fork 一个非 GitHub 仓库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9268849/