simple remote git repo howto

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

2 comments on “simple remote git repo howto

Leave a Reply