Github Repository - LockFile Exists
Asked Answered
P

3

2

I recently tried to commit to my repository via GitHub Desktop and was told there is a lock file preventing me from doing so. I do not recall uploading this lock file nor do I have an idea where it came from:

enter image description here

Pigeonwing answered 29/7, 2018 at 21:6 Comment(0)
D
3

Might someone else pushed at the same time? Else, just try to stash changes, move to another branch, move back, apply stash and push again.

Danille answered 29/7, 2018 at 21:9 Comment(1)
Everything was freezing up, I restarted the computer, and tried committing again, so yes if there was another commit "pending," that may be the causePigeonwing
H
3

I followed these steps and it works for me. Thanks

  • Enable the viewing hidden files and folders on Windows.
  • Go to your hidden .git directory shown in the error message
  • Delete the index.lock file located there.
  • After deleting the index.lock file you can do commit using GitHub Desktop again.
Hockett answered 18/8, 2020 at 14:41 Comment(0)
A
2
  1. Enable the viewing hidden files and folders on Windows.
  2. Go to your hidden .git directory shown in the error message
  3. Delete the index.lock file located there.

After deleting the index.lock file you can do commit using GitHub Desktop again.

Aghast answered 16/3, 2020 at 21:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.