美文网首页
git共同开发一个分支情况下常见问题解决

git共同开发一个分支情况下常见问题解决

作者: 仰望天空的人 | 来源:发表于2023-04-10 19:28 被阅读0次
image.png
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.



hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

输入git config pull.rebase false

重新拉取,提交就OK了。
有冲突的话,手动解决冲突再提交,

相关文章

  • git操作

    一、常见操作 切换到指定分支: git checkout 分支名 新建一个分支并且切换到这个分支:1、git ch...

  • Git 合并某个分支某个commit 到当前分支

    问题描述 假设分支A和分支B, 我们想把A上的某个commit 点合并到B分支上。 问题解决 git checko...

  • git一些小问题解决

    git一些小问题解决 Git撤销git commit 但是未git push的修改 远程删除分支 远程创建仓库 直...

  • Git

    Git是什么? 1.Git基本命令 2.git常见场景 2.1 git怎么回退远程分支? 2.2 git merg...

  • git 学习记录(命令)

    git学习记录 分支篇 仓库 分支合并 stash 默认情况下,git stash会缓存下列文件:添加到暂存区的修...

  • git常用命令

    分支管理 git 切换分支 git 查看远程分支 git 查看本地分支 git 创建本地分支 git 删除本地分支...

  • git 分支操作

    查看本地所有分支git branch 新建一个本地分支git branch 分支名 切换到某个分支git chec...

  • git命令

    git git和svn的区别 远程仓库 常见的分支 填写用户名和邮箱 git init 初始化 git clone...

  • GIT操作结构

    git从开始的接触到熟练,以及常见问题解决方法

  • Git解决冲突篇(二)

    常见 Git 操作:Git从安装到使用(一)Git 隐藏代码篇stash(三) 1)当把分支合并到master上有...

网友评论

      本文标题:git共同开发一个分支情况下常见问题解决

      本文链接:https://www.haomeiwen.com/subject/gxeuddtx.html