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


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.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM