Git, part 1
UNC COMP 523 Wed Sep 23, 2020
- Prof. Jeff Terrell
1 / 32
Git, part 1 UNC COMP 523 Wed Sep 23, 2020 Prof. Jeff Terrell 1 / - - PowerPoint PPT Presentation
Git, part 1 UNC COMP 523 Wed Sep 23, 2020 Prof. Jeff Terrell 1 / 32 Announcements music: Polynomial C by Aphex Twin you shouldn't have to pay for infrastructure! (most) clients have agreed to pay grades up to date as of 11am this morning
1 / 32
Git, part 1
2 / 32
Git, part 1
3 / 32
Git, part 1
4 / 32
Git, part 1
5 / 32
Git, part 1
6 / 32
Git, part 1
7 / 32
Git, part 1
8 / 32
Git, part 1
9 / 32
Git, part 1
10 / 32
Git, part 1
11 / 32
Git, part 1
12 / 32
Git, part 1
13 / 32
Git, part 1
14 / 32
Git, part 1
15 / 32
Git, part 1
16 / 32
Git, part 1
17 / 32
Git, part 1
18 / 32
git pull origin master # fetch the latest code and update working tree # <add a feature, fix a bug, or somehow update the working tree> git status # see a summary of what's changed git diff [FILE] # see details of what's changed [for a file] git add FILE # add a file to the index; repeat as necessary git status # confirm what is going to be committed git commit # create a new commit from the index git push origin master # update GitHub's master ref to include new commit
Git, part 1
19 / 32
Git, part 1
20 / 32
21 / 32
Git, part 1
22 / 32
* 971f7a7 (origin/master) <teammate's commit> | * 2162deb (HEAD -> master) <my commit> |/ * f6ad223 <common parent commit> * d41d8cd <grandparent commit> ...
Git, part 1
23 / 32
* 971f7a7 (origin/master) <teammate's commit> | * 2162deb (HEAD -> master) <my commit> |/ * f6ad223 <common parent commit> * d41d8cd <grandparent commit> ...
Git, part 1
24 / 32
Git, part 1
25 / 32
* 76f2fff (HEAD -> master) Merge remote-tracking branch 'origin/master' in |\ | * 971f7a7 (origin/master) <teammate's commit> * | 2162deb <my commit> |/ * f6ad223 <common parent commit> * d41d8cd <grandparent commit> ...
Git, part 1
26 / 32
* 971f7a7 (origin/master) <teammate's commit> | * 2162deb (HEAD -> master) <my commit> |/ * f6ad223 <common parent commit> * d41d8cd <grandparent commit> ...
Git, part 1
27 / 32
* 4e286c6 (HEAD -> master) <my replayed commit> * 971f7a7 (origin/master) <teammate's commit> * f6ad223 <common parent commit> * d41d8cd <grandparent commit> ...
Git, part 1
28 / 32
Git, part 1
29 / 32
30 / 32
Git, part 1
31 / 32
Git, part 1
32 / 32