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
相关推荐
喵了几个咪4 分钟前
使用Bazel构建你的Kratos微服务
java·运维·微服务
咖啡の猫23 分钟前
Python的自述
开发语言·python
千寻技术帮28 分钟前
50022_基于微信小程序同城维修系统
java·mysql·微信小程序·小程序·同城维修
野蛮人6号42 分钟前
黑马八股笔记
java
Charles_go1 小时前
41、C#什么是单例设计模式
java·设计模式·c#
夏霞1 小时前
c# ASP.NET Core SignalR 客户端与服务端自动重连配置指南
开发语言·c#·asp.net
皮皮林5511 小时前
别再只会 mvn install 了!深入拆解 Maven 插件核心原理
java·maven
百***49001 小时前
SpringSecurity的配置
java
@老蝴2 小时前
Java EE - 常见的死锁和解决方法
java·开发语言·java-ee
wangmengxxw2 小时前
Swagger技术
java·swagger