github安全更新后解决提交代码冲突
github安全更新
更新提示
创建安全更新
更新完成
合并mr
提交报错
合并后,远程仓库中的文件内容就发生了变化,此时和本地仓库中的文件内容是不一致的,进行提交会报错
To github.com:xxx.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'github.com:xxx.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first 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.
拉取远程变更
git fetch origin