在对本地的代码add 和 commit后
进行 git push操作报错
! [rejected] master -> master (non-fast-forward)
解决方案
- 1、git pull origin master --allow-unrelated-histories //把远程仓库和本地同步,消除差异
- 2、重新add和commit操作
- 3、git push origin master
来源:CSDN
作者:Boxbiu
链接:https://blog.csdn.net/Boxbiu/article/details/104070258