title: When I push a project to Github, I have the files of the oldest commit, why?
body: <p>I have a project on local and I would like to push the project on a github repository
  On local I have many commits</p>
  
  <p>To push on github I use the following commande lines:</p>
  
  <p><code>git remote add origin https://github.com/yourusername/your-repo-name.git</code> </p>
  
  <p><code>git pull origin master</code></p>
  
  <p><code>git push origin master</code></p>
  
  <p>It works but I have the first version of the project corresponds to the oldest commit</p>
  
  <p>When I use the following command:
  <code>git branch -vv --all</code></p>
  
  <p>I have:</p>
  
  <pre><code> master    4da82c9 first commit
  * old-state 35dd8a0 last commit
  </code></pre>
  
  <p>I forget something but I don't know what.</p>