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
相关推荐
四维碎片29 分钟前
【Qt】线程池与全局信号实现异步协作
开发语言·qt·ui·visual studio
程序设计实验室32 分钟前
在Windows上将git与ssh-agent搭配使用,再也不用输入git密码了
windows·git
IT码农-爱吃辣条37 分钟前
Three.js 初级教程大全
开发语言·javascript·three.js
Clownseven1 小时前
Gitea Webhook教程:实现git push后自动部署更新网站 (CI/CD入门)
git·ci/cd·gitea
☺����1 小时前
实现自己的AI视频监控系统-第一章-视频拉流与解码2
开发语言·人工智能·python·音视频
猿究院--王升1 小时前
jvm三色标记
java·jvm·算法
染翰1 小时前
lua入门以及在Redis中的应用
开发语言·redis·lua
王者鳜錸2 小时前
PYTHON让繁琐的工作自动化-函数
开发语言·python·自动化
妮妮学代码2 小时前
c#:TCP服务端管理类
java·tcp/ip·c#