Last updated
I am using Git all over my projects, for a long time, however there is 1 project, which is quite big, that causes some unexpected behaviour from time to time.
[CODE]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)[/CODE]
I can "solve" this problem with a [CODE]git remote prune[/CODE].
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 [CODE]git remote prune[/CODE] would 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?