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
相关推荐
lkbhua莱克瓦2416 小时前
进阶-SQL优化
java·数据库·sql·mysql·oracle
精神小伙就是猛16 小时前
C# Task/ThreadPool async/await对比Golang GMP
开发语言·golang·c#
行稳方能走远16 小时前
Android java 学习笔记 1
android·java
kaico201816 小时前
多线程与微服务下的事务
java·微服务·架构
zhglhy16 小时前
QLExpress Java动态脚本引擎使用指南
java
小瓦码J码16 小时前
使用AWS SDK实现S3桶策略配置
java
办公自动化软件定制化开发python16 小时前
基于PyQt5开发的文件智能查找工具,开源思路+完整实现,解决办公文件检索痛点
开发语言·qt
工程师00716 小时前
C#状态机
开发语言·c#·状态模式·状态机
廋到被风吹走16 小时前
【Spring】Spring Cloud 配置中心动态刷新与 @RefreshScope 深度原理
java·spring·spring cloud
牧小七16 小时前
springboot 配置访问上传图片
java·spring boot·后端