export GIT_EDITOR=vim
mkdir foobar
cd foobar
git init
touch .gitignore
echo "*.rb" >> .gitignore
git add .gitignore
vim .git/index
And you see:
And now:
git commit
Same 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.