900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > 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

时间:2020-06-08 23:27:14

相关推荐

git报错Please enter a commit message to explain why this merge is necessary

问题:

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

Merge branch 'main' of https://gitlab./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!的详细区别

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。