有的时候,由于使用的镜像服务器,进行下载,所以更新代码的服务器也是镜像服务器上的代码,往往更新的时候会提示无法更新,无法连接等,需要更换服务地址,就使用git remote
可以通过git remote -v查看连接
nancy@nancy-desktop:~/lede$ git remote -v
origin https://github.com/coolsnowwolf/lede.git (fetch)
origin https://github.com/coolsnowwolf/lede.git (push)
其中origin就是远程连接地址,可以通过 rm 进行删除,add 命令进行添加
nancy@nancy-desktop:~/lede$ git remote rm origin //删除
nancy@nancy-desktop:~/lede$ git remote -v //查询
nancy@nancy-desktop:~/lede$ git remote add origin https://github.com/coolsnowwolf/lede.git //添加
记录一天的点点滴滴,希望能记得住!