Asked
Active
Viewed 1,760 times
-1

Imani M. Jackson
- 201
- 1
- 2
- 10
-
Possible duplicate of [Another git process seems to be running in this repository](https://stackoverflow.com/questions/38004148/another-git-process-seems-to-be-running-in-this-repository) – phd May 04 '18 at 15:22
2 Answers
2
As the log says, there might be another running process which needs the lock. ps aux
should give some clues. If no other processes are running, the lock may be the leftover of a process that has been killed or ended by accident before it finishes the job. You could manually remove the lock file and then try git checkout
again.

ElpieKay
- 27,194
- 6
- 32
- 53
-
-
@ImaniM.Jackson `ps aux` is a command that you can run in git bash or bash shell. You can remove it by deleting the file or run the command `rm -f
`. – ElpieKay May 04 '18 at 05:07 -
would you manually delete the file from the folder its in and remake it or is it in the .git hidden folder? – Imani M. Jackson May 04 '18 at 05:17
-
@ImaniM.Jackson it's the file index.lock under .git. You can see its full path in the log. – ElpieKay May 04 '18 at 05:23
1
Try rm -f ./.git/index.lock
and try to git checkout
again

Deb
- 2,922
- 1
- 16
- 32
-
If you think it's helpful ,i would be nice if you could accpet this as accepted answer – Deb May 04 '18 at 05:25