title: How to make Head point to master in git?
body: <p>Please help to make Head point to master in git</p>
  
  <p><img src="https://i.imgur.com/R9L9anq.png" alt="git problem image"></p>
  
  <p>I tried to </p>
  
  <pre><code>git rebase HEAD master
  </code></pre>
  
  <p>and </p>
  
  <pre><code>git checkout master
  </code></pre>
  
  <p>Nothing of those helps.</p>
  
  <p>Updated:
  Strange I tried:</p>
  
  <pre><code>git symbolic-ref HEAD
  refs/heads/master
  </code></pre>
  
  <p>then</p>
  
  <pre><code>git rev-parse refs/heads/master
  fc550e5ff2fe49d64ee1d8bf0da09b2b24bf2cd7
  </code></pre>
  
  <p>and then I got strange warning after the following command</p>
  
  <pre><code>git rev-parse HEAD
  warning: refname 'HEAD' is ambiguous.
  fc550e5ff2fe49d64ee1d8bf0da09b2b24bf2cd7
  </code></pre>
  
  <p>New Update:
  There was HEAD branch in remotes -> origin . After removing it everything is ok. I do not have that warning anymore.</p>