Think before you speak, read before you think.

git lock

by

in
➜  ansible-roles git:(master) ✗ git add todo.md 
fatal: Unable to create '/Users/jpuyy/ansible-roles/.git/index.lock': File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

解决办法

rm -f .git/index.lock

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *