「Gitをはじめからていねいに」を丁寧に読む Vol.1
ひとりでつかう - はじめてのコミット を丁寧によんでいこう。
Windows(cygwin)でコミット編集用エディタの変更。
こちらを参考に、初めからUTF-8モードで開く方法を加えて、こんなかんじにしました。
$ git config --global core.editor '/cygdrive/c/Program\ Files/sakura/sakura.exe -CODE=4'
コミットメッセージの編集
コミットメッセージをエディタで編集するところで、 viで100ddみたいにして、一生懸命#行を消してからコミットして メンドウだなと思ったら、気づいてしまった。
'#' will be ignored なんだから、消す必要なくて、普通に後ろに 追記すればいいんだね。私は、そんなアホなおじさんですww
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: nyan.txt
#