Creating A New Remote Git Repo
Posted by Tres Tue, 03 Mar 2009 09:12:00 GMT
I have to say it again.
I don’t heart Subversion.
Not anymore, anyway; after pushing Subversion on everyone for everything – and I mean everything (even things like Cfengine input file distribution and storage of corporate document templates), I tried something new last year; and once you go Git, you never go back. It’s not really Git itself that makes me ogle, but how much better the concept of a distributed RCS is than the SVN/CVS model. It’s so much more versatile and easy to use. Way back when, I compared the move from SVN => Git to the move from procedural programming => OOP. Both have that ‘aha!’ moment when you just have to admire the genius of the guys who envisioned them. These days, I liken Subversion to the DOS prompt; it’s adequate if you have the patience and are willing to work around all its shortcomings.
Anyways, here’s the goods on creating a remote repository to push stuff to:
First you’ll need to set up an empty repository on the machine you’re going to be pushing to. Find the directory you want to keep the repository in and then:
git init
Then set up your development box to push to the location you just set up. cd to the directory where you’ve got your git repo and:
git remote add gumby ssh://gumby.brainzai.com/work/brainzai.com/Brainzai/SupaStah
We’ve named our remote repository server ‘gumby’ here.
Now we can push everything to the remote server:
git push gumby master
And Bullllamm! It’s Done!