git commit -aを実行しようとすると何らかの理由でnanoの一番下にある通常のコントロールを受信せず、編集したコミットメッセージを保存できません。出力は次のようなものです:gitコミット-a/nano
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: app/controllers/photos_controller.rb
# deleted: app/views/comments/edit.js.erb
# deleted: app/views/facets/_old_menu.html.haml
# modified: app/views/photos/uploaded_photo.html.haml
# deleted: config/initializers/delayed_job_config.rb
# deleted: public/images/blue_panel_column.png
# deleted: public/images/embed/add_feature_button.png
~
~
~
~
".git/COMMIT_EDITMSG" 39L, 1947C
私はこれを全部見ました。私は手動で.git/index.lockを削除する必要がありました。アドバイスを事前に感謝します。
'set EDITOR = vim'となり、nanoにはもう問題はありません:P –
最近、私はvimの学習に慣れてきました。 :) – mark
vimは素晴らしいです、それは試してみるべきです:) – EinLama