HoffSpace

Make HoffSpace Your Space...

Karl Gaywood
  • Male
  • London
  • United Kingdom
Share on Facebook Share on Facebook Share Twitter
  • Blog Posts
  • Discussions
  • Events
  • Groups
  • Photos
  • Photo Albums
  • David's Favorite Videos

Karl Gaywood's Friends

  • dinky the female chihuahua
  • Teresa

Music

Loading…
 

Karl Gaywood's Page

Profile Information

Moving from github



I decided to move all my code from svn to git after I started using GIT with github.com last week. However github plan to charge for private repositories soon so I decided to migrate from github to my slicehost server for private repositories and use github for any public repositories.

This post assumes you already have git installed on you local machine

First of all you will need to install git

apt-get install git-core

Then get you public key and add it to the authorised keys for your github account

cat ~/.ssh/id_rsa.pub

Now clone your repository to your server

git clone git@github.com:GITHUB-USER/REPOSITRY.git /git/REPOSITRY.git

Now clone to you local machine, im using ssh for this as I have the keys setup

git clone git+ssh://USER@YOUR-SERVER.COM/git/REPOSITRY.git REPOSITRY

That should be it, you will now be able to push to your server instead of git hub.

git push origin master

To make commit messages a little easier you can set a git editor, edit this file

mate ~/.bash_login

and add this line

export GIT_EDITOR="mate -w"

Comment Wall (2 comments)

You need to be a member of HoffSpace to add comments!

Join HoffSpace

At 1:35am on July 4, 2008, Sarah said…
Hello to you!
At 7:10am on July 3, 2008, Karl Gaywood said…
I love Percy Pigs - nuff said.
 
 
 

© 2012   Created by Hasselhoff.com.

Badges  |  Report an Issue  |  Terms of Service

Offline

Live Video