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 thoughts on “simple remote git repo howto

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s