提交文件到远程仓库报错
git push github master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'github.com:2020zina/zina.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
成功提价文件到远程仓库
是不是上面更新了你直接push的,你应该先pull一下,看看更改和报错,再往上推
pull之后报错如下
致命:拒绝合并不相关的历史记录
这种该怎么解决呢
在上传之前要拉一下最新的代码才行