title: Set Current Branch
body: <p>I did two git commit and git push to a branch <code>MyBranch</code> that I needed to revert. Based on some google search I did the following while being on branch <code>MyBranch</code>:</p>
  <pre><code>git reset [shaNumber]
  [do some changes]
  git commit -m&quot;my comments&quot;
  git push -f
  </code></pre>
  <p>Then I did a complete new git clone and git checkout to get to <code>MyBranch</code>. However, I don't seem to be on the current branch anymore because when I use TortoiseGit (I only use it to look at logs and visual graphs) I don't see the red part anymore. I only see the brown/yellowish area. I am afraid that if I make further changes I could mess up the repository so how do I get that red part back again?</p>
  <p>As it should be:
  <a href="https://i.stack.imgur.com/fbHNM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fbHNM.png" alt="As it should be" /></a></p>