How to configure Brackets as git core.editor in Windows

懵懂的女人 提交于 2019-12-03 16:50:07

In windows 8 powershell its Same as Mac or Linux

git config --global core.editor brackets

This works for me on GitBash:

$ echo 'alias brackets="c:/Program\ Files\ \(x86\)/Brackets/Brackets.exe"

(You need backslash \ to escape spaces and parenthesis.)

GitBash displays no confirmation or error message for me. Close GitBash. Open GitBash. Type the following:

$ brackets   

and it should open Brackets.

I found the solution on Udacity on how to set up GitBash to open the Sublime editor. https://www.udacity.com/wiki/ud775/sublime

It will be simple In linux.

git config --global core.editor brackets

In windows test it

git config --global core.editor 'c:/program files (x86)/brackets/brackets.exe'
Rick Bates
git config --global core.editor "C:\Program Files (x86)\Brackets\Brackets.exe"

Windows path statements use backslashes... and quotes needed for spaces.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!