git通过终端合并

Nou*_*vay 3 git terminal git-merge

我试图通过终端进行git合并.我正在分支机构工作fix_stuff,我需要合并回来develop.所以我做如下

git checkout develop
git merge --no-ff fix_stuff
Run Code Online (Sandbox Code Playgroud)

现在我看来是一个文本编辑器 - 仍然在终端内 - 有以下消息

# 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.
Run Code Online (Sandbox Code Playgroud)

果然我按i,然后输入我的信息.现在我已经完成了这条消息,我不知道该怎么办.我esc x当时试过了esc q.没有.

我通过Mac El Capitan使用Android Studio终端

int*_*ing 11

因为你按下i输入你的文字,我认为编辑是vim.假设您输入了提交消息,那么您必须这样做

<esc> :w <enter>
Run Code Online (Sandbox Code Playgroud)

写入文件和

<esc> :q <enter>
Run Code Online (Sandbox Code Playgroud)

退出. 注意:<>表示按键的内容.


小智 6

Esc,然后输入“:wq”并按Enter