I committed a java file using
git commit -a I forgot to add a file to said commit so I tried to amend the previous one using
git commit -a --amend When the editor opened up, I changed my mind and closed the editor using :q!.
I then did a git log and my unintentional commit was successful.
Anyone know why git went ahead and committed my 'aborted' commit?