环境是 win7 64位
用git进任意clone下来的文件夹后输入指令git remote -v后都有两个remote,分别是origin 和 upstream。
运行很多脚本时会报出以下错误
fatal: remote origin already exists.
网上说的解决方法是输入指令git remote rm origin来删除origin,但是我输入指令后报出以下错误
error: Could not remove config section 'remote.origin'。
现在不知道如何是好,希望大家帮助。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
git clone .......... 执完 从远程 拷备后 git pull origin master 执行一下这条命令,与远程同步合并分支 之后再提交 应该没有问题