Git 合并分支机构';硕士';
初学者:按照系统的要求,在将新文件“推送”到GitHub之前,我试图进行“拉”操作。当我键入Git 合并分支机构';硕士';,git,merge,Git,Merge,初学者:按照系统的要求,在将新文件“推送”到GitHub之前,我试图进行“拉”操作。当我键入git push时,它显示: Merge branch 'master' of https://github.com/Wordworth/Test2 # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty mess
git push
时,它显示:
Merge branch 'master' of https://github.com/Wordworth/Test2
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
~
-- INSERT --
这个怎么办?目标是在提交到GitHub repo后推送我的文件,该文件已经存在,并且名称与本地文件相同。有什么提示吗?这是正常行为。它正在将远程内容与本地内容合并。保存此提交消息,拉取将完成。然后推
git pull
在幕后做两件事——首先,从远程repo提取所有内容,然后将当前分支的远程内容与本地内容合并
您看到的文件是提交合并结果的建议消息。谢谢。成功了。尽管键入和保存该提交存在困难,因为它是不寻常的输入:1。按“i”2。写下你的合并信息3。按“esc”4。写下“:wq”5。然后按enter键(人们说它来自终端中的Vi/Vim编辑器),您可以更改git使用的编辑器: