Commit, pull and push fail because of unresolvable problem with index.lock

Jeremy Wyatt March 23, 2018

Recently I have this problem all the time when I try to commit, push or pull.

 

 

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree pull origin master

From https://github.com/ferdianjovan/phd_thesis

* branch            master     -> FETCH_HEAD

error: Unable to create '/Users/jlw/Documents/phds/ferdi/phd_thesis/.git/index.lock': File exists. 

Another git process seems to be running in this repository, e.g.

an editor opened by 'git commit'. Please make sure all processes

are terminated then try again. If it still fails, a git process

may have crashed in this repository earlier:

remove the file manually to continue.

Updating 9af7830..8772a55

Completed with errors, see above

This happens across multiple repos, and operations. Any suggestions?

1 answer

0 votes
Jeremy Wyatt March 23, 2018

By the way, I've tried killing stray git processes, restarting, and deleting the index.lock file. These don't seem to work (at least not reliably)

sicklesart February 18, 2020

Did you find an answer to this problem?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events