I signed up for a Github account. Github is a hosted git repository. Git is a distributed version control system focused on speed, effectivity and real-world usability on large projects. There are a couple of things I want to do with this. I want to use it as a repository for my rails apps. I also want to use it to host Rails plugins that I plan to release. Ruby on Rails has moved their repo to Github.
I signed up for the Micro plan at $7 per month since I needed private repos. When signing up you need to provide an SSH public key. I use Linux and OS X. My public key is located in
~/.ssh/id_rsa.pub. If you don’t have a public key use the following command to create one:
Enter the contents of the key file in the “SSH Public Key” box. Since I use more than one computer, I added my other SSH keys. I did this from the account page in GitHub. I also went to the profile page and added information about myself.
I created a new repository by clicking on Create a Repository.
Set up my user translations file:
echo 'sveit = Stephen Veit
git-svn init $SVN/tess/trunk/ --no-metadata
git config svn.authorsfile ~/Desktop/users.txt
git clone tess_tmp tess
Edit .git/config. Change the [remote “origin”] section to
url = firstname.lastname@example.org:srveit/tess.git
fetch = +refs/heads/*:refs/remotes/origin/*
push = refs/heads/master:refs/heads/master
Then push the repo to github:
git push origin
To check out the project into a new directory:
git clone email@example.com:srveit/tess.git tess
More information on git can be found from the home page: