I'm trying to use Sublime Text 3 as Git's editor.
I ran this:
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
git config --global core.editor "subl -n -w"
I then ran:
git commit --amend
Sublime opened and I edited the file, saved it, and then closed it. However, Git was still waiting for the file to close:
hint: Waiting for your editor to close the file...
- There is no error message.
- I can use Sublime with no problems outside of Git.
- I tried restarting the machine (MacBook Pro).
texteditworks as expected:
git config --global core.editor "open -W -n"
- The version of Sublime is:
3.2.1 Build 3207
git version 2.17.1 (Apple Git-112)
Why isn't this working?