I am getting the following error when I try to fetch/pull any branch from the git repo.
error: cannot lock ref 'refs/tags/4.3.1.136/artifactory': 'refs/tags/4.3.1.136' exists; cannot create 'refs/tags/4.3.1.136/artifactory'
From https://dev.azure.com/myCompany/Tools/_git/sim
! [new tag] 4.3.1.136/artifactory -> 4.3.1.136/artifactory (unable to update local ref)
I added another git repo credentials a few weeks ago but still everything was working fine (push/pull/fetch/merge/rebase). But today is the first time, I am getting this issue. Maybe the issue is related to the presence of other credentials. I have already edit the .gitconfig file and removed all traces of another credentials. I have already tried to run the following commands:
git gc --prune=now
git remote prune origin
I was able to fetch from the remote using git pull --no-tags
but if I try to rebase the development branch to the main brach, I again get the above-mentioned error.