This tiny little howto has really helped me along many times. I’ve used SVN for a long time, so the idea of having a remote repo makes sense to me.
I’ll put it up here as a small reference, but I imagine I’ll probably be the one using it the most. 🙂
local: git init
remote: mkdir project.git
cd project.git
git init –bare
local: git remote add origin ssh://server/~steve/project.git
git push origin master
server: git clone ~/project.git ~/projects/name
local: git push
server: git pull
I use this script for uploading new git repos to my git web/remote server. I run it in my current local git directory and as an argument I give it a description:
http://pastebin.com/puRsCudh
If you want the remote repo’s working copy updated on a local push, setup a post-update hook like described here.