大家好,欢迎来到IT知识分享网。
原文源自:https://blog.csdn.net/u011136197/article/details/79429000/
方法有3种:
1、修改命令
git remote set-url origin <url>
IT知识分享网
2、先删除后添加
IT知识分享网git remote rm origin
git remote add origin [url]
例如:
方法3.直接修改config文件
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/11672.html
![IDEA git修改远程仓库地址[亲测有效]插图1 IDEA git修改远程仓库地址[亲测有效]](https://haidsoft.com/wp-content/uploads/2022/11/2022112316405970.jpg)
![IDEA git修改远程仓库地址[亲测有效]插图3 IDEA git修改远程仓库地址[亲测有效]](https://images2017.cnblogs.com/blog/697878/201712/697878-20171212143117832-665051775.png)
![IDEA git修改远程仓库地址[亲测有效]插图5 IDEA git修改远程仓库地址[亲测有效]](https://images2017.cnblogs.com/blog/697878/201712/697878-20171212143144160-1053163480.png)
![IDEA git修改远程仓库地址[亲测有效]插图7 IDEA git修改远程仓库地址[亲测有效]](https://images2017.cnblogs.com/blog/697878/201712/697878-20171212143211082-2042757929.png)