My project A was under git source control. For my reasons, I copied project A . This copy I will called project B . So, the problem is that project B is directed to project A git repository, and I want to switch B project to new git repository. How can I do this ?
如果您的意思是远程源引用了A
(请确保在存储库B中执行git remote -v
),则可以在命令行中执行以下操作:
git remote set-url origin /url/of/repo/for/B
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.