Skip to content

Instantly share code, notes, and snippets.

@hanssens
Created November 18, 2014 13:02
Show Gist options
  • Save hanssens/d19923fe9ece02308772 to your computer and use it in GitHub Desktop.
Save hanssens/d19923fe9ece02308772 to your computer and use it in GitHub Desktop.
Git - Frequently Used Restore Commands

Error

fatal: Unable to create '/path/my_proj/.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.

Fix it using:

rm -f ./.git/index.lock

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