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:
Github Repository - LockFile Exists
Asked Answered
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.
Everything was freezing up, I restarted the computer, and tried committing again, so yes if there was another commit "pending," that may be the cause –
Pigeonwing
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.
- 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.
© 2022 - 2024 — McMap. All rights reserved.