Pregunta

Having a problem with Nano on Ubuntu 12.04 when initiating a git commit command. When I launch a commit (e.g., git commit -a -m "some text") it brings up Nano which is completely unresponsive to any kb commands including the ctrl- commands on the bottom menu.

The following is what is displayed from 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
#

Any help would be appreciated.

Thanks!

¿Fue útil?

Solución

Any time I see somebody committing to Git as root I get uneasy.

Having said that, try taking gksu out of the picture and using sudo directly:

sudo git commit -a -m "sample text"
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top