-1

Here is the problem enter image description here What should I do?

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 Answers2

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
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