我想为一个新项目克隆一个现有的git repo.克隆后,代码应独立于原始开发.我也想在GITHUB上主持新项目.
我的工作流程:
但之后我的'克隆'与Github上的基础仓库连接.我想将更改推送到新的Github Repo instad
我新增了它的类似'fork',但它对我不起作用,就像Github上的用户一样.
Arn*_*anc 16
删除对原始存储库的引用:
git remote rm origin
Run Code Online (Sandbox Code Playgroud)
添加对您自己的存储库的引用:
git remote add origin your-repos-url
Run Code Online (Sandbox Code Playgroud)
您可能只想重命名原始存储库而不是删除它:
git remote rename origin upstream
Run Code Online (Sandbox Code Playgroud)
有关git help remote更多信息,请参阅.
| 归档时间: |
|
| 查看次数: |
7146 次 |
| 最近记录: |