Closed AdamAndersonFalafelSoftware closed 8 years ago
Can you show which program is configured as the default for .txt
files? That's the extension we're using here when GitPad is invoked, I just want to confirm this is as it should be.
Here's what I've got on my Windows 10 VM:
Here's what appears in Control Panel | Programs | Set Associations:
...aaand I just figured it out. :) I went into Git Bash and typed
git config core.editor
and found that somehow unbeknownst to me, (but knownst to Git Shell) my core.editor setting had been set explicitly to ST. Git checks this setting before looking at environment variables. Removing the setting allowed the environment EDITOR setting to take over. Issue resolved; thanks for acting as my rubber duck!
@AdamAndersonFalafelSoftware :clap: I'm glad you got to the bottom of it!
I am using the GitPad that comes bundled with GitHub for Windows. My initial text editor was set to the default Notepad, and commit messages opened for editing in that as expected. Then I changed my default program for .txt files to Sublime Text, and that caused commit messages to open in Sublime as expected. However, I quickly decided that I didn't like that behavior because of how the message would open in a tab but I'd have to close the entire editor to get the commit to proceed. So I changed the default program for .txt back to Notepad, but now GitPad seems "stuck" on using Sublime Text and I can't seem to convince it to unstick.
GitPad is the editor. At the Git Shell prompt, typing
$env:EDITOR
outputsGitPad
I can prove that my default editor for text files is Notepad by opening Git Shell and typing.\test.txt
This opens test.txt in Notepad. Then I try committing some changes withgit commit
and the commit message opens in Sublime Text.Please help diagnosing.