0、进入项目隐藏目录 .git 下 1、修改 .git 下config文件 修改 [remote "origin"] 下的 url 为Gitee仓库远程的地址,保存文件。 2、按正常的Git操作提交本地代码即可