ga-wdi-exercises / project1

[project] GA- Project 1
3 stars 75 forks source link

git fatal error #193

Closed jenpen closed 9 years ago

jenpen commented 9 years ago

I'm receiving the following error:


fatal: Unable to create [myDirectory].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.


Other than git status and git branch, I'm not able to run many git commands including git add, git commit, or git checkout. Online resources provide a range of solutions and the most popular is to delete the index.lock file file the .git directory. I wanted to check with someone before executing on this though.

Thanks!

RobertAKARobin commented 9 years ago

Yup, go with the resource you found! rm .git/index.lock.