git pull origin master失败

hint: You have divergent branches and need to specify how to reconcile them. hint: You can do so by running one of the following commands sometime before hint: your next pull: hint: hint: git config pull.rebase false # merge hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. fatal: Need to specify how to reconcile divergent branches.

复制代码
# 查看本地和远程分支的差异
git log --oneline --graph --all -10

# 查看本地未推送的提交
git log origin/master..HEAD --oneline

git config pull.rebase true
git pull origin master


git config pull.rebase false  
git pull origin master
相关推荐
2401_8370885020 小时前
ResponseEntity - Spring框架的“标准回复模板“
java·前端·spring
hsjkdhs20 小时前
C++文件操作
开发语言·c++
hoiii18720 小时前
C#实现近7天天气预报
开发语言·c#
lang2015092820 小时前
Spring Boot RSocket:高性能异步通信实战
java·spring boot·后端
赵谨言20 小时前
基于Python楼王争霸劳动竞赛数据处理分析
大数据·开发语言·经验分享·python
默默coding的程序猿21 小时前
1.北京三维天地公司-实施实习生
java·sql·技术支持·面经·实施·实施工程师·三维天地
亦陈不染21 小时前
c#入门详解(刘铁锰)06 - 数据持久化:TXT文本保存、序列化与反序列化(附详细源码)
开发语言·计算机视觉·c#·wpf
ceclar12321 小时前
C++Lambda表达式
开发语言·c++·算法
天天摸鱼的java工程师21 小时前
解释 Spring 框架中 bean 的生命周期:一个八年 Java 开发的实战视角
java·后端
尤老师FPGA21 小时前
LVDS系列32:Xilinx 7系 ADC LVDS接口参考设计(三)
android·java·ui