title: Git checkout old commit, and further make new commits
body: <p>FYI: I am using bitbucket to push my git to (I know not very important).</p>
  
  <p>I was working on a project, wherein I made changes, and pushed to origin master, only to realise that master had some major bug, hence I checked out to a specific old commit, in the same master branch by using </p>
  
  <p><code>git checkout commit_name</code></p>
  
  <p>After that I started working further and kept adding and committing, now I am lost how to keep the following new commits, as well as not lose earlier (buggy) master. Basically how to get back on track.</p>
  
  <p>P.S. I tried using <code>git push -u origin master</code> , but it returns <code>Everything up-to-date</code>, and nothing gets pushed to bitbucket.</p>