Git troubleshooting

trying to relieve common problems

index.lock

If a message like ... index.lock ... file exists ... appears then run this command:

$ rm -f .git/index.lock

This should reset the local repo :)

I recommend having a look at the humorous but useful site https://ohshitgit.com/ for the most common Git problems and how to solve them!

Last updated