title: Git cannot lock ref, cannot create ref
body: <p>I get this error:</p>
  
  <blockquote>
  <pre><code>fatal: cannot lock ref 'refs/heads/oleg/feature/1535693040/squashed':
  </code></pre>
    
    <p>'refs/heads/oleg/feature/1535693040' exists; cannot create
    'refs/heads/oleg/feature/1535693040/squashed'</p>
  </blockquote>
  
  <p>the script that generated the error was:</p>
  
  <pre><code>current_branch="$(git rev-parse --abbrev-ref HEAD)"
  
  git checkout -b "$current_branch/squashed"
  git reset --soft "remotes/origin/dev";
  
  git add .
  git add -A
  git commit -am "ores/gitflow auto-commit (squashed)"
  git push
  </code></pre>
  
  <p>anyone know what that is about?</p>