👻
gitでnano使わずにvimにする
毎回忘れるのでメモ。
tokitricky@tokitricky:~$ cat .gitconfig
[user]
email = XXXXXXXXXXXX@XXXXXX
name = toki-tricky
tokitricky@tokitricky:~/my-zen-article$ git config core.editor vi
tokitricky@tokitricky:~/my-zen-article$ git config --global core.editor vi
tokitricky@tokitricky:~/my-zen-article$ git config --system core.editor vi
error: could not lock config file /etc/gitconfig: Permission denied
tokitricky@tokitricky:~/my-zen-article$ sudo git config --system core.editor vi
tokitricky@tokitricky:~$ cat .gitconfig
[user]
email = XXXXXXXXXXXX@XXXXXX
name = toki-tricky
[core]
editor = vi
tokitricky@tokitricky:~$ git config --list
core.editor=vi
user.email=XXXXXXXXXXXX@XXXXXX
user.name=toki-tricky
core.editor=vi
Discussion