title: How to set up private git server on linux
body: <p>I have tried following <a href="http://tumblr.intranation.com/post/766290565/how-set-up-your-own-private-git-server-linux">how-set-up-your-own-private-git-server-linux</a> and <a href="http://www.layeredthoughts.com/git/private-remote-git-repositories-ubuntu-linode">private-remote-git-repositories-ubuntu-linode</a> but I am still having problems.</p>
  
  <p>My local environment is windows and my remote linux. I have a couple of questions:</p>
  
  <ol>
  <li>In the first article it describes setting up a public ssh key for the server - I've never done this before and I'm not sure where to type the commands (not even sure whether local or remote!!): <code>ssh myuser@server.com mkdir .ssh</code> and <code>scp ~/.ssh/id_rsa.pub myuser@server.com:.ssh/authorized_keys</code></li>
  <li>On my local dev machine should I be running <a href="http://code.google.com/p/msysgit/">msysgit</a>? Is there an alternative because the version I installed is taking up 1.4 GB! I installed <code>msysGit-netinstall-1.7.4-preview20110204.exe</code> from <a href="http://code.google.com/p/msysgit/downloads/list">http://code.google.com/p/msysgit/downloads/list</a></li>
  </ol>
  
  <p>I tried skipping making the git user and public key, created the repositories on the remote machine but then when I try <code>git remote add origin ssh://[username]@[domain/ip/hostname]/srv/git/[project-name]</code> as root user it says: <code>fatal: Not a git repository (or any of the parent directories): .git</code></p>