克隆目标仓库
git clone git@git.example.com
进入文件夹
cd examplefilefolder
查看现在连接的仓库,可以看到现在连接的仓库
git remote -v
移除原有连接
git remote rm origin
查看现在连接的仓库,为空
git remote -v
添加新仓库连接
git remote add origin git@git.newexample.com
查看现在连接的仓库,就会发现改成新的了
git remote -v