更改git默认编辑器:change git default editor to "gedit" or "Sublime Text 2"

最开始接触git的时候,还非常的懵懂无知,连默认编辑器都设置成不熟悉的vim,后来才将默认编辑器设置成常用的sublime text 2。

下面是修改默认编辑器的设置:

gedit:

git config --global core.editor "gedit -s"
the paramater "-s " means set the gedit mode to "standalone"

 

Sublime Text 2

git config --global core.editor "subl -w"

the paramater "-w" means return until the file was closed.



git config --list 这条命令可以查看git的设置


你可能感兴趣的:(Ubuntu,Git)