Activity Team/Git Tutorial: Difference between revisions
Inkyfingers (talk | contribs) →Commit Changes: add small note |
|||
Line 4: | Line 4: | ||
== Gitorious == | == Gitorious == | ||
Getting started with | Getting started with GitHub | ||
You will learn to do the following: | You will learn to do the following: | ||
Line 15: | Line 15: | ||
=== Create an Account === | === Create an Account === | ||
Create an account | Create an account [https://github.com/join here] | ||
=== Create SSH Key on Windows === | === Create SSH Key on Windows === | ||
Line 72: | Line 63: | ||
=== Add SSH Key === | === Add SSH Key === | ||
Log in to | Log in to GitHub at http://github.com and go [https://github.com/settings/ssh here] click on 'Add Ssh Key'. Choose a title. Open your public key in a text editor, web browser, or even ''cat'' command, and then copy and paste the key into the text entry field. Click on ''Save''. | ||
Once you do this, Gitorious trusts SSH connection from your system because your system has the private key, and Gitorious has the public key. You should only need to do this once, unless you change to another system. | Once you do this, Gitorious trusts SSH connection from your system because your system has the private key, and Gitorious has the public key. You should only need to do this once, unless you change to another system. | ||
(With ssh-keygen you can specify the name of your key file. Using this feature is not a good idea, because we haven't tested it. Keys should generally be located in <tt>~/.ssh/id_rsa.pub</tt> or <tt>~/.ssh/id_dsa.pub</tt>.) | (With ssh-keygen you can specify the name of your key file. Using this feature is not a good idea, because we haven't tested it. Keys should generally be located in <tt>~/.ssh/id_rsa.pub</tt> or <tt>~/.ssh/id_dsa.pub</tt>.) | ||
=== Create a Project === | === Create a Project === | ||
Log in to Gitorious at http:// | Log in to Gitorious at http://github.com and go [https://github.com/new here]. Choose a repository name, and write a description. | ||
=== Create Local Repository === | === Create Local Repository === | ||
Clone it from Gitorious: | Clone it from Gitorious: | ||
git clone | git clone git@github.com:username/${SLUG}.git ${SLUG}.git | ||
Replace ''${SLUG}'' with your project slug value. | Replace ''${SLUG}'' with your project slug value. |