title: Add git to existing project on server
body: <p>I know maybe this question is answered somewhere but I didn't find a solution for it.  I have a project that is already in a live server  and I want to add a .git to be able to pull/push from my local machine.</p>
  
  <p>I was thinking that I can do on the server : 
  git init
  git remote add origin git@project.git
  git add .
  git commit -m "Initial commit" </p>
  
  <p>But it seems not to be the right way so I tried  to do a git init --bare project.git and clone from my local, but the directory is empty.</p>
  
  <p>Can someone tell me how I can do add git in this case.
  Thank You.</p>