I've installed Git on Rpi Arch via Pacman. It installed fine. I was able to add my details to the config and initialise a new repo. I also had no trouble adding files to the repo.

But the moment I try to make a initial commit (in the default Nano text editor), the command line wigs' out. When I try to kill the program with ctrl + c, the terminal breaks completely (endlessly printing out a "EoF" error message), and only stops once the computer is switched off...

Anyone familiar with this issue?

1 Answer 1


Was it nano which crash or git itself (in my opinion less probably).

Try to do some "dummy" commit e.g. inside your git repository, using -m comment argument, which embed commit message in commandline so that external text editor won't be called:

touch dummy.c 
echo "dummy" > dummy.c
git add dummy.c
git commit -m "my dummy commit"

Then you can check if commit was OK (e.g. git log). If it is, it's probably nano that causes problems, not git.

  • Was trying to answer my own question yesterday, but wasn't able to. To problem was not so much Nano itself, but not having it set. 'git config --global editor nano' fixed it. Thanks for the reply.
    – Charlie
    Dec 11, 2012 at 22:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.