... until the collector arrives ...

This "blog" is really just a scratchpad of mine. There is not much of general interest here. Most of the content is scribbled down "live" as I discover things I want to remember. I rarely go back to correct mistakes in older entries. You have been warned :)

2009-05-01

Git/MinGW versus Windows

On Windows using the Git/MinGW package, I was trying to use the command git rebase -i HEAD~3 to rewrite history interactively.  By default, VIM is used to edit  the rebase command file.  Unfortunately, it does not function properly in a plain old CMD window.  Also, Wordpad would probably be a better choice anyway.  I ran in to difficult configuring this.  After much experimentation, I discovered that the following Git configuration would work:

git config --system core.editor "cmd //c start //wait wordpad"

The /WAIT is needed to make sure that Git doesn't just carry on immediately after START returns.  START is needed to make it easier to launch Wordpad which does not usually live on the PATH.  Finally, the doubled slashes are need to inhibit MinGW's automatic pathname expansion (which rewrites paths: /c/xyz -> c:/xyz and /wait -> c:/mingwinstalldir/wait).

Blog Archive