您的位置:首页 > 其它

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

2013-06-12 13:15 495 查看
最开始接触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

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

git config --list 这条命令可以查看git的设置
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐