error: cannot lock ref 'refs/remotes/bitbucket/mailimport1100': is at 143d54aa12 but expected 9ec2c2baff From bitbucket.org:org/repo ! 9ec2c2baff mailimport1100 -> bitbucket/mailimport1100 (unable to update local ref)I can "solve" this problem with a
git remote prune. Now the issue is, that this happens very often and I'd like to know what could be the cause of this. Usually, I work with smaller projects and not with Bitbucket. That's the only difference between this project, where the issue occurs, and the other projects, where I have never seen the issue before. If a single
git remote prunewould fix it for good, then it wouldn't be an issue, but why do I have to run this command so often to fix the faulty differences between the local and remote repository?