GIT Error - Cannot lock existing info/refs

Introduction

I received a strange issue during the Fetch and Pull actions in Visual Studio.
The error is:

Error
Error: cannot lock existing info/refs/blablabla

Fix

The fix consist to remove references to remote branches in the folder .git/refs/remotes/origin

$ git remote prune origin

This fix will not affect the local branches, just update the local references.
So.. it’s safe!