Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/grails/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
第一次git提交,现在系统发出嘟嘟声_Git - Fatal编程技术网

第一次git提交,现在系统发出嘟嘟声

第一次git提交,现在系统发出嘟嘟声,git,Git,我的第一次提交是使用添加自述文件 git commit -m 'first commit' 我现在有以下内容,当我尝试向上或向下导航时,系统会发出嘟嘟声。不知道如何摆脱它,也不知道它为什么会出现 非常感谢您的帮助 first commit # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the c

我的第一次提交是使用添加自述文件

git commit -m 'first commit'
我现在有以下内容,当我尝试向上或向下导航时,系统会发出嘟嘟声。不知道如何摆脱它,也不知道它为什么会出现

非常感谢您的帮助

first commit

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
#       new file:   README
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       css/
#       img/
#       index.html
~                                                                                   
~                                                                                   
~                                                                                   
~                                                                                   
-- INSERT --

我认为git打开了VIM来编辑提交消息。您可以通过在命令模式下键入ESC转到,然后键入:wq保存并退出来退出它


这可能是因为$EDITOR环境值设置为vim。您可以通过将export EDITOR={your favorite EDITOR}添加到~/.bashrc或~/.profile文件来更改它。

我认为git打开VIM是为了编辑提交消息。您可以通过在命令模式下键入ESC转到,然后键入:wq保存并退出来退出它


这可能是因为$EDITOR环境值设置为vim。您可以通过向~/.bashrc或~/.profile文件添加导出编辑器={您最喜欢的编辑器}来更改它。

git使用vi作为其默认文本编辑器。编辑提交消息,然后按Esc键,然后键入:wq保存并退出


接下来,如果您不熟悉vim,应该更改文本编辑器。在命令提示下,键入git config-global core.editor editor,将editorb替换为您希望使用的任何编辑器,如gedit、记事本等。您可以了解有关基本git配置的更多信息。

git使用vi作为其默认文本编辑器。编辑提交消息,然后按Esc键,然后键入:wq保存并退出

接下来,如果您不熟悉vim,应该更改文本编辑器。在命令提示下,键入git config-global core.editor editor,将editorb替换为您希望使用的任何编辑器,例如gedit、notepad、,等等。您可以了解有关基本git配置的更多信息。

如果提交消息最终包含垃圾,您可能还需要git commit-amend来修复提交消息。如果提交消息最终包含垃圾,您可能还需要git commit-amend来修复提交消息。