(From Rails4InAction, page 55)
-
Go to http://github.com
- Login to your account "s5b".
-
Click "New Repository".
-
Enter the name of the repository, and then click "Create Repository".
- Follow the instructions, especially concerning configuration of your identity.
- The email address should be the same one that you used to sign up to git hub (github@sequation.com.au)
-
Back on your local machine: If you haven't done so already: git config --global user.name "Stuart Begg" git config --global user.email github@sequation.com.au
-
While in the directory that will be the top of your local repository type: git init
-
Now, add all the files in this local repository: git add .
-
Create your initial local commit: git commit -m "A descriptive message about the repository that you are creating."
-
Associate the remote repository with this local repository: git remote add origin git@github.com:s5b/.git
-
Push local changes to the remote repository: git push origin master -u