0

启动 git commit 命令时,Ubuntu 12.04 上的 Nano 出现问题。当我启动一个提交(例如, git commit -a -m "some text")时,它会调出 Nano,它对任何 kb 命令(包括底部菜单上的 ctrl- 命令)完全没有响应。

以下是 Nano 显示的内容:

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Committer: root <root@user-Ubuntu.(none)>
#
# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
#       new file:   controller/ContactsController.php
#       new file:   index.php
#       new file:   model/ContactsGateway.php
#       new file:   model/ContactsService.php
#       new file:   model/ValidationException.php
#       new file:   view/contact-form.php
#       new file:   view/contact.php
#       new file:   view/contacts.php
#       new file:   view/error.php
#

任何帮助,将不胜感激。

谢谢!

4

1 回答 1

0

每当我看到有人提交 Git 时,root我都会感到不安。

话虽如此,尝试取出gksu图片并sudo直接使用:

sudo git commit -a -m "sample text"
于 2014-01-01T19:48:03.613 回答