📜  从一个 repo 克隆到另一个 repo - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:08.892000             🧑  作者: Mango

代码示例3
First clone the repository you want to work with. This step could be skipped if you want it all to happen in the folder you are already in.

git clone file:///path/to/repo/
Cloning will bring over the remotes specified in that directory. So you'll need to remove the remotes you don't want.

git remote rm 
And add the ones you do, after you have created your remote repository.

git remote add origin