How to configure brackets as git core.editor on Windows

I am trying to configure Git to use Adobe Brackets as the main editor on my Windows 7 laptop. I use Git Bash. I have work on a Mac at school, so I know that this is possible (although after saving the file that Git opens in brackets for me to edit, I have to completely leave the brackets so that it registers with Git, just closing the file does not work ) This is what I configured on a Mac that works:

git config --global core.editor "open -nW -a 'Brackets’"

This is what I have tried so far on Windows:

git config --global core.editor "'c:/program files (x86)/brackets/brackets.exe' open -n -w"

with open -n -nW-wl1 -a combinations as options

If I don’t have the brackets that are already open, then this works fine - it opens the brackets and opens the file for me to edit (although again I need to completely exit the brackets so that it registers with Git as saved).

However, if I already have the brackets open, everything that it does is attached to the brackets - it does not open the file and its contents at all. It doesn’t matter if the working file is open or not at all - all Git performs the activation of the brackets, but does not open the file.

If anyone has any ideas on how to fix this, let me know. It would be nice if I could get Git to confirm my save by closing the edited file after saving instead of exiting the entire program, but most of all I need this to open the files in Windows brackets correctly. Thank!

+4
4

GitBash:

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

( \, .)

GitBash . GitBash. GitBash. :

$ brackets   

.

Udacity , GitBash Sublime. https://www.udacity.com/wiki/ud775/sublime

+1

linux.

git config --global core.editor brackets

windows test

git config --global core.editor 'c:/program files (x86)/brackets/brackets.exe'
0

Windows 8 powershell , Mac Linux

git config --global core.editor brackets
0
git config --global core.editor "C:\Program Files (x86)\Brackets\Brackets.exe"

Windows ... , .

-2

Source: https://habr.com/ru/post/1536033/


All Articles