title: How to sync local git repo with origin/master eliminating all changes
body: <p>I want to sync my local repository so as to make the local an exact copy of the master. Since checking it out I have added several files to my local, not present in master, that I do not wish to commit. Nevertheless, in this procedure, I want to erase all differences of my local from master: when I am done, the additional files in local will have been deleted. </p>
  
  <p>An earlier question offers a strategy to make local like master:
  <a href="https://stackoverflow.com/questions/1628088/how-to-reset-my-local-repository-to-be-just-like-the-remote-repository-head/1628334#1628334">Reset local repository branch to be just like remote repository HEAD</a> </p>
  
  <p>But this does not work for me. The recommended commands,
  git fetch origin
  git reset --hard origin/master</p>
  
  <p>do not erase the additional files from my local, even though git status indicates local and master are identical. And also, in one case the master's version of a file did not replace my local version.</p>
  
  <p>Any ideas on how to do this?</p>