Skip to content

Instantly share code, notes, and snippets.

@ybur-yug
Last active December 3, 2016 23:31
Show Gist options
  • Save ybur-yug/3ef23f204fb3e2b6a098d68de5b4c139 to your computer and use it in GitHub Desktop.
Save ybur-yug/3ef23f204fb3e2b6a098d68de5b4c139 to your computer and use it in GitHub Desktop.
export GIT_EDITOR=vim
mkdir foobar
cd foobar
git init
touch .gitignore
echo "*.rb" >> .gitignore
git add .gitignore
vim .git/index

And you see:

vim

And now:

git commit

committing

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment