vscode直接点提交一直提交不上去---直接在终端提交
-
先检查状态
git status
-
如果显示红色,表示没有被跟踪,需要add;如果显示绿色,表示被跟踪并且文件被已修改,需要commit
git commit -m "xx"#添加comment
-
commit之后,push
git push origin xx
-
push后发现仓库未上传项目--远程仓库地址错误--修改git本地仓库关联的远程仓库地址(即push和pull的目标仓库)
git remote set-url origin http://xx.git