问题:

多人联合开发时,经常在你git pull和git push之间有其他人push了新代码,不可避免的会遇到如下问题。

Merge branch 'main' of https://gitlab.rd.test.com/iOS/SideB/TestDemo
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
~                                                                                    
~                                                                                                                                                               
"~/Documents/TestDemo/.git/MERGE_MSG" 6L, 313B

解决:

按“ESC”键后输入“:wq”后回车解决

:wq 强制性写入文件并退出(存盘并退出 write and quite)

TO:

【Linux】vi编辑器中:wq 、:wq!、:x、:q、:q!的详细区别

git报错Please enter a commit message to explain why this merge is necessary相关推荐

  1. git中Please enter a commit message to explain why this merge is necessary.

    git中Please enter a commit message to explain why this merge is necessary. git 在执行合并的时候 git merge 出现的 ...

  2. 解决Git执行pull命令时,报错:Please enter a commit message to explain why this merge is necessary...

    如图所示,在pull项目代码时,出现如下报错: 1.当出现上述情况,可按Ese退出: 2.输入:wq,注意是英文输入状态下的冒号,然后按下Enter即可.(:wq是Linux操作系统的命令:强制性写入 ...

  3. idea报错:please specify commit message

    git的时候发生这么个错 在我上传git的时候报了这么个错误,这是因为上传需要写commit message 就是这么个框里面写点字就可以了!!!!

  4. Git三种报错:E325: ATTENTION、Please enter the commit message for your changes、Timed out

    三种报错解决: 1.报错:E325: ATTENTION: 删除.git隐藏文件夹下的.COMMIT_EDITMSG.swp 2.报错:Please enter the commit message ...

  5. git报错Please move or remove them before you can merge

    今天提交代码时git报错: Please move or remove them before you can merge 原因是本地的修改和别人的提交有冲突,且没有合并 解决: git clean ...

  6. Git 报错:You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).Please, commit your changes

    Git 报错 在 IDEA 中使用 Git 报错: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).Please, ...

  7. 使用git checkout -b origin/命令报错is not a commit and a branch ‘dev_86984_newn‘ cannot be created from it

    使用git checkout -b origin/命令报错is not a commit and a branch 'dev_86984_newn' cannot be created from it ...

  8. # Please enter the commit message for your changes. Lines starting # with ‘#‘ will be ignored

    # Please enter the commit message for your changes. Lines starting  with '#' will be ignored, and an ...

  9. git报错 git libpng warning: iCCP以及fatal: Authentication failed for ‘https://git.weixin.qq.com‘

    git打卡,本来是老哥带着我做项目,纯git新手小白,以后出现问题自己解决了,顺便分享一下自己的经验,防止以后忘记,顺便给新人铺个路~ 我一开始在使用git clone的时候,一共出现了两个错误,到处 ...

最新文章

  1. [知识库分享系列] 三、Web(高性能Web站点建设)
  2. 关于共享单车的供电问题如何解决?
  3. 大数据时代的数据挖掘
  4. 英佩臻游联手发力《全球使命VR》突显未来野心
  5. led显字风扇原理?
  6. 四位共阳极数码管显示函数_新手求助四位共阳数码管显示函数
  7. js alert 封装 layui
  8. 139团队(大型研发团队,大型敏捷开发团队,大型团队结构,敏捷绩效管理)...
  9. 23. 二叉搜索树的后序遍历序列
  10. 电脑查询ip地址的方法,第一种最为简单
  11. Linux中hosts文件的修改
  12. 解决局域网文件传输慢的问题
  13. deepin 切换输入法
  14. matlab绘制圆极化波,圆极化波及其MATLAB仿真_西电
  15. Maya 2023安装步骤(附安装、汉化、图文教程)
  16. log4j不打日志问题之实战解决方案(二)
  17. 我的世界:命名牌暗藏众多彩蛋,老玩家:原来还能这样玩啊!
  18. 极米movin01x和z6x的区别哪个好
  19. ROS2-Foxy-配置
  20. 建一栋房子总共分几步?建造者模式告诉你答案~

热门文章

  1. 只需6步骤,教你用ghost硬盘对拷实现系统安装
  2. JAVAWeb项目前后端的分离,数据交互的跨域问题
  3. 线性代数:向量组的线性相关性
  4. 怎么将图片旋转45度?
  5. JAVA CST时间 转换成Date
  6. VC++如何利用Matlab2014b的图形引擎进行绘图
  7. 关于PB打印设置中纸张的大小
  8. 北京ui设计培训排名,视觉交互规范大盘点
  9. 阿里云服务器ECS选款利器,性能测试PTS详解
  10. 魔狼地址:https://bitbucket.org/moLangZaiShi/demo/downloads