0

git commit コマンドを開始するときに、Ubuntu 12.04 の Nano に問題があります。コミットを開始すると (例: git commit -a -m "some text")、下部メニューの ctrl- コマンドを含む kb コマンドに完全に応答しない Nano が表示されます。

以下は、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 に答える