export GIT_EDITOR=vim
mkdir foobar
cd foobar
git init
touch .gitignore
echo "*.rb" >> .gitignore
git add .gitignore
vim .git/indexAnd you see:
And now:
git commitSame thing, different file!
index just gives you this message then git carries it on. Kind of fun if you ever wondered where such things came from.

