title: Moving a git repo to another server
body: <p>I have a git clone/repo on a development server, but I am now moving to another one. I don't want to commit all my local branches and changes to the main repository, so how can I make an exact copy of everything on oldserver to newserver?</p>
  
  <p>I tried <code>oldserver:~$ scp -rp project newserver:~/project</code></p>
  
  <p>but then I just get loads and loads of "typechange" errors when trying to do anything on newserver.</p>
  
  <p>Someone said something about x-modes, but how can I preserve that when moving files between servers?</p>