首页 > 其他分享 >git pull问题 git config pull.rebase false

git pull问题 git config pull.rebase false

时间:2022-09-20 17:48:27浏览次数:102  
标签:pull git false Hint -- rebase config

错误如下:

Unable to pull because your local and remote branches changed.
Set your preferred Git behavior for how to reconcile diverged branches in Git settings.
git: 'credential-manager' is not a git command. See 'git --help'.
The most similar command is
    credential-manager-core
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.

执行下红色字体就可以了

标签:pull,git,false,Hint,--,rebase,config
From: https://www.cnblogs.com/Insist-Y/p/16711879.html

相关文章

  • 几个Git仓库开源软件的比较
    特性gitlabgitblitgitbucketgogsgitolite公开库√√√√√私有库√√√√√在线编辑√×√××wiki√√√√×issue√√......
  • 快速搭建 Git 服务器[Windows版]
    服务器搭建下载下载JDK:https://www.oracle.com/technetwork/java/javase/downloads/下载Gitblit:http://gitblit.com/解压解压缩下载的压缩包即可,无需安装。创......
  • 国内外主流的 Git 代码托管网站
    国内外主流的Git代码托管网站#国外的三大Git代码托管平台都支持 DevOps,国内的主流托管平台均支持 DevOps 或者有条件(付费)支持.1.GitHub#https://github.......
  • SpringBoot实战电商项目商城(50k+star)地址:github.com/macrozheng/...
    经常遇到小伙伴问我之前写的技术文章在哪里。或者用很久以前的部署文档问我,为什么不能按照这篇文章进行部署。其实如果他们上过我的实战教程网站,估计就不会出现这样的问题......
  • github强制远程代码覆盖本地过程
    假设在B设备上更新了代码,需要在A设备上同步保证B设备上的所有更改COMMIT并且PUSH到了github上A设备上清理工作区gitclean-df注意,这会删除当前的更改在A设备上pul......
  • 如何在idea上创建gitlab远程分支
    git分支只需要在idea里面创建新分支,然后直接push,gitlab上面就有新分支了     ......
  • Git报错:Updates were rejected because the tip of your current branch is behind
    错误说明出现这个错误的原因是git本地仓库的当前版本低于远程仓库的版本(大白话就是:你在github上进行的修改没有同步到本地git仓库中)。错误原因第一种错误的原因某一......
  • gitee(码云)的注册和代码提交
    概述Github与Gitee是同一类,在云端。区别是Github是国外的,Gitee是国内的。二者的使用需要借助Git。GitHub是全英文并且用户基数多,知名的库也多Gitee全是中文,而且大部分用户......
  • Git忽略已经提交过一次文件Git忽略文件
    1、从未提交过的文件可以用.gitignore   也就是添加之后从来没有提交(commit)过的文件,可以使用.gitignore忽略该文件该文件只能作用于未跟踪的文件(UntrackedFiles),......
  • 解决Git中fatal: refusing to merge unrelated histories
    Git的报错在使用Git的过程中有时会出现一些问题,那么在解决了每个问题的时候,都需要去总结记录下来,下次不再犯。一、fatal:refusingtomergeunrelatedhistories今天在使......