Remove incomplete commit locks on the command line

Posted on Sunday, 16 June 2019

Run these commands in the command line to clear incomplete commits:

rm .git/COMMIT_EDITMSG
rm .git/.COMMIT_EDITMSG.swp
rm .git/index.lock

Then add your changes, commit and push as you would normally.