Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
以上为报错信息
根本 原因是分支冲突导致的
https://www.cnblogs.com/daemon369/p/3204646.htmlhttp://
第一步
先将你的本地仓库和远程仓库连接起来
建立了一个origin远程仓库
git remote add origin git@github.com:[yourname]/xxx.git
第二步
将你 的网络上的文件更新到本地,一定要有READEME.md文件
git pull
第三步
建立一个新的分支abc
git branch abc
第四步
更新即可
git push -u origin abc
第五步 在项目界面查看新的pull即可,然后选择是否合并到master上
这几步的前提是你修改好了并提交了文件,这些操作应该是在你的新建分支abc下完成的
git add xxx.md
git commit xxx.md
查看分支
git branch
带*号的就是你当前的分支