我正在学习mac上的github (命令行),每当我使用git pull origin master
时,我都会得到这样的结果
# 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.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
".git/MERGE_MSG" 7L, 293C
终端似乎锁定了,不允许我立即输入任何东西,然后当它终于允许我输入文本时,它似乎不能识别git命令。
这是git中的一个bug,还是我漏掉了什么?
发布于 2017-06-14 18:44:24
运行此命令
git config --global core.editor "gedit"
将您的邮件添加到此文件中并保存。现在就往后拉。
发布于 2018-01-18 21:57:12
你可以做git checkout --merge yourbranch
当前分支、工作树内容和新分支之间的三向合并已完成,您将位于新分支上。
发布于 2018-04-28 18:18:33
问题通常发生在我们拼写错误的时候。
您更有可能对以下命令感兴趣:
git commit -m "message"
如果有问题,它可能会这样说
Your branch and 'origin/master' have diverged,
and have 2 and 1 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
并使用:
git pull
这应该会导致:
Already up-to-date.
那么最好检查一下:
git status
并再次尝试推送:
git push
https://stackoverflow.com/questions/14046122
复制相似问题