因仓库迁移,所以需要更改仓库地址,正常情况推代码是直接git push,所以希望更换地址后不影响使用习惯 步骤 git remote -v 查看当前仓库地址 git remote set-url origin 【远程仓库ssh地址】 git remote -v 查看是否设置成功