Monday, March 23, 2009

generate ssh key for github

It looks to me that github is a good place to host open source. Also git is aimed to replace svn, so I would move to git from svn. (currently googlecode is with svn).

$ git config --global "foo"
$ git config --global ""
$ cd sur
$ git init
$ git add sur.w %my source code
$ git commit -m "first commit"
$ git remote add origin
$ git push origin master

I got permission denied error message. It is not very hard for me to figure it out.

1. try to connect to github by ssh (it helps to know the problem)

ssh -v

2. generate the public key

$ cd ~/.ssh
$ ssh-keygen -t rsa

3. Add the the content of to github, then I am ready to see
the magic.