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
相关推荐
李少兄9 分钟前
@DateTimeFormat.fallbackPatterns 详解
java
天天摸鱼的java工程师12 分钟前
线上服务无辜假死状态:一次 GC Overhead 的深度排查
java·后端
程序员清风19 分钟前
快手二面:Redisson公平锁用用过吗?他的实现原理是什么样子的?
java·后端·面试
SimonKing20 分钟前
Java序列化陷阱揭秘:这5个错误80%的开发者都犯过
java·后端·程序员
Seven9720 分钟前
Redis容量评估模型
java·redis
堕落年代29 分钟前
小红书JS SDK签名过程
开发语言·javascript·ecmascript
MediaTea31 分钟前
Python:math 库函数手册(双曲函数)
开发语言·python
€81134 分钟前
Java入门级教程16——JUC的安全并发包机制
java·开发语言·juc的安全并发包机制·栅栏机制·闭锁机制·信号量机制·无锁机制
杨杨杨大侠36 分钟前
Atlas Mapper 教程系列 (2/10):环境搭建与项目初始化
java·开源·github
杨杨杨大侠44 分钟前
Atlas Mapper 教程系列 (1/10):框架概述与设计思路
java·开源·github