title: Git fatal: cannot lock ref
body: <p>I'm trying to create a branch on the current branch on my Ubuntu guest. 
  Unfortunately I keep getting this error: </p>
  
  <pre><code>git checkout -b origin/feature/IF-53-change-validation-window/Tommaso
  fatal: cannot lock ref 'refs/heads/origin/feature/IF-53-change-validation-window/Tommaso': 
  'refs/heads/origin/branch' exists; 
  cannot create 'refs/heads/origin/branch/Tommaso'
  </code></pre>
  
  <p>I tried <code>git gc --prune=now</code> as suggested here <a href="https://stackoverflow.com/questions/43533473/error-cannot-lock-ref-refs-tags-exists-cannot-create-refs-tags">link</a>, but keep getting the same error. </p>