【转载】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

浙公网安备 33010602011771号