vscode推送代码到gitee 在项目根目录里面运行命令 //初始化 git init //设置用户名和邮箱 git config --global user.name yourName //**注意,--和global之间没有空格** git config --global user.email yourName@gmail.com //连接远程仓库 git remote add origin http://.......//这里的地址写远程仓库的地址,直接复制过来就行 //推送到主分支 git pull origin master 然后在vscode里面就可以看到也可以提交的代码了。