Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Working with others using Git and GitHub

Working with others using Git and GitHub

The basics of using Git and GitHub to collaborate on a multi-person software project. Presented to students at The University of Edinburgh in 2018.

Mike McQuaid

January 16, 2018
Tweet

More Decks by Mike McQuaid

Other Decks in Technology

Transcript

  1. $ git clone https://github.com/MikeMcQuaid/strap Cloning into 'strap'... remote: Counting objects:

    655, done. remote: Total 655 (delta 0), reused 0 (delta 0), pack-reused 655 Receiving objects: 100% (655/655), 142.85 KiB | 870.00 KiB/s, done. Resolving deltas: 100% (325/325), done.
  2. $ git status On branch testing Untracked files: (use "git

    add <file>..." to include in what will be committed) testing.txt nothing added to commit but untracked files present (use "git add" to track)
  3. $ git status On branch testing Changes to be committed:

    (use "git reset HEAD <file>..." to unstage) new file: testing.txt
  4. $ git commit -m "add test plan" [testing 82b9fdf] add

    test plan 1 file changed, 1 insertion(+) create mode 100644 testing.txt
  5. $ git push fatal: The current branch testing has no

    upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin testing
  6. $ git push --set-upstream origin testing Counting objects: 3, done.

    Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 281 bytes | 281.00 KiB/s, done. Total 3 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local object. To https://github.com/MikeMcQuaid/strap * [new branch] testing -> testing Branch 'testing' set up to track remote branch 'testing' from 'origin'.
  7. $ git fetch remote: Counting objects: 1, done. remote: Total

    1 (delta 0), reused 1 (delta 0), pack-reused 0 Unpacking objects: 100% (1/1), done. From https://github.com/Homebrew/homebrew-php 213dbf0d..6ec9064d master -> origin/master
  8. $ git pull remote: Counting objects: 31, done. remote: Compressing

    objects: 100% (3/3), done. remote: Total 31 (delta 22), reused 25 (delta 22), pack-reused 6 Unpacking objects: 100% (31/31), done. From https://github.com/Homebrew/homebrew-core c62c972697..2e9eb43456 master -> origin/master Updating c62c972697..2e9eb43456 Fast-forward Formula/app-engine-go-64.rb | 4 ++-- Formula/irssi.rb | 10 +++++----- Formula/mpir.rb | 44 ++++++++++++++++++++++++++++++++++ Formula/nordugrid-arc.rb | 2 +- Formula/phantomjs.rb | 4 ++-- 5 files changed, 54 insertions(+), 10 deletions(-) create mode 100644 Formula/mpir.rb