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
相关推荐
用户83071968408239 分钟前
Java IO三大模型(BIO/NIO/AIO)超详细总结
java
sheji341639 分钟前
【开题答辩全过程】以 基于SSM的花店销售管理系统为例,包含答辩的问题和答案
java
Mr_sun.1 小时前
Day09——入退管理-入住-2
android·java·开发语言
MAGICIAN...1 小时前
【java-软件设计原则】
java·开发语言
JH30731 小时前
为什么switch不支持long
java
gpfyyds6661 小时前
Python代码练习
开发语言·python
盐真卿1 小时前
python第八部分:高级特性(二)
java·开发语言
茉莉玫瑰花茶1 小时前
C++ 17 详细特性解析(5)
开发语言·c++·算法
上海合宙LuatOS2 小时前
LuatOS核心库API——【audio 】
java·网络·单片机·嵌入式硬件·物联网·音视频·硬件工程
lly2024062 小时前
《堆的 shift down》
开发语言