1, vscode同步失败,因为远程仓库中有README文件,而本地项目中没有导致失败,需要在本地项目生成该文件
git pull --rebase origin master //本地生成ReadMe文件
git push origin master
解决问题网址:https://www.cnblogs.com/qingheshiguang/p/14777557.html
提交代码到仓库命令
- git init 初始化
- git status 查看状态
- git add .
- git commit -m "xxxxxx"
- git remote add origin GitHub - ai228/c_server: 使用C语言编写的TCP通信服务端 添加到远程仓库
- git pull 拉取远程仓库到本地
- git push -u origin master 提交代码
Git在push推送时,报错提示信息如下:
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
————————————————
版权声明:本文为CSDN博主「幕尘枫」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
1、先使用pull命令:
git pull --rebase origin master
2、再使用push命令:
git push -u origin master