"Waiting for your editor to close the file" when trying to use Sublime Text 3 as Git editor
4
votes
0
answers
3978
views
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
Then this:
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).
- Using
textedit
works as expected: git config --global core.editor "open -W -n"
- The version of Sublime is: 3.2.1 Build 3207
- Git: git version 2.17.1 (Apple Git-112)
Why isn't this working?
Asked by Mitch
(141 rep)
Sep 19, 2019, 04:39 PM
Last activity: Sep 19, 2019, 06:43 PM
Last activity: Sep 19, 2019, 06:43 PM