【转载】git 添加和删除 remote.origin.url

1 单独的仓库
添加
git remote set-url origin "https://..."
git config remote.origin.url "https://..."

 

删除
git remote rm origin

 

2 全局变量
添加
git remote --global set-url origin "https://..."
git config --global remote.origin.url "https://..."

 

删除
vim ~/.gitconfig
# 删除 origin 的 参数
[remote "origin"]
————————————————
版权声明:本文为CSDN博主「Npcccccc」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_28018283/article/details/79761559

posted @ 2019-10-12 09:43  Delo  阅读(3167)  评论(0)    收藏  举报