Skip to content

Instantly share code, notes, and snippets.

@s5b
Last active October 12, 2015 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s5b/4008617 to your computer and use it in GitHub Desktop.
Save s5b/4008617 to your computer and use it in GitHub Desktop.
Creating a New Repository

Creating a New Repository.

(From Rails4InAction, page 55)

  1. Go to http://github.com

    • Login to your account "s5b".
  2. Click "New Repository".

  3. 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)
  4. 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

  5. While in the directory that will be the top of your local repository type: git init

  6. Now, add all the files in this local repository: git add .

  7. Create your initial local commit: git commit -m "A descriptive message about the repository that you are creating."

  8. Associate the remote repository with this local repository: git remote add origin git@github.com:s5b/.git

  9. Push local changes to the remote repository: git push origin master -u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment