title: Git update master content on Github
body: <p>I would like to use Git to save and share my work on github and use it from anywhere.</p>
  
  <p>I had just a master branch with my script <code>GaussianMixture.py</code> and a <code>readme.md</code></p>
  
  <p>I was working on new functions on my script and I accidentally pushed the commit of this modified script (<code>GaussianMixture_priors_all_init.py</code>) in the master branch. I wanted to create a new branch. </p>
  
  <p>I succeed to move this script from master to a new branch I created (<code>priors_all_inits</code>) \o/ with :</p>
  
  <pre><code>git branch priors_all_inits
  git reset --hard HEAD~1
  git checkout priors_all_inits
  git push -u origin priors_all_inits
  </code></pre>
  
  <p>Now when I check the content of my master branch and my new branch I have :</p>
  
  <pre><code>git ls-tree -r --name-only priors_all_inits 
  GaussianMixture.py
  GaussianMixture_priors_all_init.py
  README.md
  
  git ls-tree -r --name-only master
  GaussianMixture.py
  README.md 
  </code></pre>
  
  <p>Is that normal that my original script GaussianMixture.py and my readme.md are also copy in my new branch <code>priors_all_inits</code> ? (let's say it's normal...)</p>
  
  <p>WHY on github, my modified script <code>GaussianMixture_priors_all_init.py</code> is in the master AND in the priors_all_inits branch ? How can I update my master to have the same thing that I see in local on github. <strong>Because on Github, my master and my branch are exactly the same with the same content...</strong></p>
  
  <p>Thanks for any help</p>