Posted by ant
October 1st, 2008
Filed in Rails, Sysadmin
I’ve been working with Git for my source control recently. It seems to work more appropriately for me than Subversion. This is primarily because you don’t have to be connected to the Internet to perform commits to the versioning system, it keeps the whole versioning database in a subdirectory called .git.
I did however, have some problems getting a remote repository setup stored on my Dreamhost account, but luckily I found some instructions on autopragmatic.com. Here I want to record the way to create a new repository
On your local machine
mkdir repo.git
cd repo.git
git init
touch .gitignore
git add .
git commit -m "added .gitignore"
# Down to here creates the local git repository and does first commit
git remote add origin ssh://user@example.com/home/user/git/repo.git
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
# Configure the Git repository
git push --all
# push the changes to the remote Git repository.
Blog uses Mephisto
Design from OSWD
by dreamLogic

Sorry, comments are closed for this article.