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:
            Asked
            
        
        
            Active
            
        
            Viewed 3,938 times
        
    3 Answers
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.
        ClaudiuSocaci
        
- 242
 - 2
 - 11
 
- 
                    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 – tccpg288 Jul 29 '18 at 21:13
 
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.
 
        General Grievance
        
- 4,555
 - 31
 - 31
 - 45
 
        armel sauvy
        
- 65
 - 6
 
