我无法将sublime设置为我的git commit消息编辑器.
使用:git config --global core.editor"subl"
错误:错误:无法运行subl:没有此类文件或目录错误:无法启动编辑器'subl'请使用-m或-F选项提供消息.
subl工作完全不然.
当我写作时,git commit --amend
我会得到某种编辑器,我可以在其中更改此提交的名称.如何使用键盘确认并保存我的更改?
我试图通过终端进行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终端