- 查看原来仓库地址
git remote -v
- 删除原来仓库地址
git remote rm origin
# git remote rm origin https://gitee.com/zhangxiaoQ/large-file-upload.git
- 添加需要推送的仓库
git remote add origin https://gitee.com/stevencmu/large-file-upload.git
git remote -v
git remote rm origin
# git remote rm origin https://gitee.com/zhangxiaoQ/large-file-upload.git
git remote add origin https://gitee.com/stevencmu/large-file-upload.git