1、先输入$ git remote rm origin 2、再输入$ git remote add origin https://gitee.com/xiepangzhu/demo.git 就不会在报错了