title: What will git checkout master + git reset --hard do?
body: <p>I 'm relatively new to git and and having some problems early on. I've made several commits, but when I try to push them I get a response that says everything is up-to-date. I feel like my problem is the same on listed in <a href="https://stackoverflow.com/questions/999907/git-push-says-everything-up-to-date-even-though-i-have-local-changes">this question</a>, but it recommends the following:</p>
  
  <pre><code>$ git log -1
  # note the SHA-1 of latest commit
  $ git checkout master
  # reset your branch head to your previously detached commit
  $ git reset --hard &lt;commit-id&gt;
  </code></pre>
  
  <p>What exactly will "checking out the master" do? I just don't want to lose the changes I've made...</p>
  
  <p>screenshot of gitk:<br>
  <img src="https://i.stack.imgur.com/OvTa4.jpg" alt="enter image description here"></p>