yaominchen
|
Posted: March 01, 2011 08:07 by yaominchen
|
|
You need to generate a public key and store the key in your java.net profile. See details in: http://java.net/projects/help/pages/GeneratingAnSSHKey The steps described in http://help.github.com/linux-key-setup/ work for both Solaris and Linux. Once you have the public key stored in your profile, register your public key (e.g., the content of ~/.ssh/id_rsa.pub) with java.net. To register, log into java.net and select your user profile. Then click on the SSH Keys tab. Then follow the steps described in the following link to check out the code: http://java.net/projects/help/pages/SourceControl#About_Git For example: mkdir new-repo cd new-repo/ git init git remote add origin ssh://your-user-name@git.java.net/your-project-name~git-code-repository git clone ssh://your-user-name@git.java.net/your-project-name~git-code-repository This cheat sheet for git commands is quite helpful - http://byte.kde.org/~zrusin/git/git-cheat-sheet-large.png Official git site - http://git-scm.com/ Git for SVN users - http://git.or.cz/course/svn.html Git Guide - http://wiki.sourcemage.org/Git_Guide |



