msysgit sucks.
Here‘s how to get it to work with your ssh key.
msysgit sucks.
Here‘s how to get it to work with your ssh key.
I love the flexibilty that git provides, and the way it fits into distributed development. That’s the only reason I’ve been able to tolerate the hackery that is known as msysgit, the “official” Git release for Windows.
msysgit basically dumps an entire linux distribution on your Windows box when you install – ported versions of perl, vim, bash, it’s all there, just to wipe msysgit’s butt. What a mess. Imagine if every port was done this way. But we’re stuck with it for now, so let’s get it working. Which. Isn’t. Easy. Especially when it comes to setting up an editor for commit messages when using a batch file script.
There are alternatives. You can right-click on a folder and run a “Git Bash” from that location, which is hacked together to work well enough. VIM will kick in to let you edit your commit messages. And there are writeups on getting Windows Powershell to get along with msysgit. But I want to use git from simple Windows batch files.
To do so, I had to do the following:
#!/bin/sh
"C:/Michae~1/System~1/npp/notepad++.exe" -multiInst "$*"
set EDITOR=C:/short/npp.bat
git commit -a
git config --global core.editor C:/short/npp.bat
Without ALL of these steps, it just won’t work.