The Azimuth Project
Using git and github (Rev #2, changes)

Showing changes from revision #1 to #2: Added | Removed | Changed

Here is are some help instructions for those new to git and github.

  • get Get an account at github. (In this example the name isGraham853.)

  • install Install git on your computer computer.Download page.

  • start Start Git Bash Bash.

  • create Read a directory little for in Azimuth the code, andcdbook to it in Git Bash.Pro Git by Scott Chacon. You will at least have to do something like this:

    $ git config --global user.name "Graham853"
    Work@FEB2012-PC ~/AAA/Programming/gittest
    $ git config --global user.email  xxxxxxxxxx
  • This Create downloads a one of the Azimuth repositories (PredatorPreySDE) into the directory (gittest3): (here it’sgittest3) for Azimuth code, and cd to it in Git Bash.

    Work@FEB2012-PC ~/AAA/Programming/gittest3
    $ git clone http://github.com/azimuth-project/PredatorPreySDE
    Cloning into 'PredatorPreySDE'...
    remote: Counting objects: 18, done.
    remote: Compressing objects: 100% (13/13), done.
    remote: Total 18 (delta 4), reused 17 (delta 3)
    Unpacking objects: 100% (18/18), done.
    Checking connectivity... done.
  • cd This into downloads one of the repository: Azimuth repositories (PredatorPreySDE) into the directory:

     Work@FEB2012-PC ~/AAA/Programming/gittest3 $ cd git PredatorPreySDE/ clone http://github.com/azimuth-project/PredatorPreySDE Cloning into 'PredatorPreySDE'... remote: Counting objects: 18, done. remote: Compressing objects: 100% (13/13), done. remote: Total 18 (delta 4), reused 17 (delta 3) Unpacking objects: 100% (18/18), done. Checking connectivity... done.
  • make a file (test2.txt) in the local repository (in PredatorPreySDE)cd into the local repository (PredatorPreySDE).

  • add Make it a to file git: (here it’stest3.txt) in the local repository.

    $ git add test2.txt
  • look Add what it you’ve to done: your local git repository:

     $ git status add On test3.txt branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git reset HEAD <file>..." to unstage)       new file:   test2.txt
  • commit Look your what new you’ve file done: locally:

     $ git commit status -m On "this branch master Your branch is a up-to-date test" with [master 'origin/master'. 68a9bfa] Changes this to is be a committed: test (use 1 "git file reset changed, HEAD 1 <file>..." insertion(+) to create unstage) mode  100644      new file:   test3.txt
  • push Commit your new file to locally: the Azimuth repository. For this to work, you need to be added to azimuth-project.

     $ git push commit warning: -m push.default "this is unset; a its test" implicit [master value 68a9bfa] is changing in Git 2.0 from 'matching' to 'simple'. To squelch this message is and a maintain test the 1 current file behavior changed, after 1 the insertion(+) default create changes, mode use: 100644 test3.txt

    (the rest of this warning truncated)

  • This Push is your what new success file looks to like the for Azimuth user repository. Graham853: For this to work, you need to be added to azimuth-project.

     Username $ for git 'https://github.com': push Graham853 warning: Password push.default for is 'https://Graham853@github.com': unset; Counting its objects: implicit 4, value done. is Delta changing compression in using Git up 2.0 from 'matching' to 4 'simple'. threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 277 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To http://github.com/azimuth-project/PredatorPreySDE squelch  this 320b36d..68a9bfa message  and master maintain -> the master current behavior after the default changes, use:

    (the rest of this warning truncated)

  • This is what success looks like:

    Username for 'https://github.com': Graham853
    Password for 'https://Graham853@github.com':
    Counting objects: 4, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (2/2), done.
    Writing objects: 100% (3/3), 277 bytes | 0 bytes/s, done.
    Total 3 (delta 1), reused 0 (delta 0)
    To http://github.com/azimuth-project/PredatorPreySDE
     320b36d..68a9bfa  master -> master