Browse code

Rejustify diagrams

Joseph Weston authored on 02/08/2021 01:12:20
Showing 1 changed files
... ...
@@ -34,9 +34,9 @@ that you shouldn't try and make commits directly on this branch because it's
34 34
 when the remote repository is updated by somebody else, so that there is a "fork"
35 35
 in the history:
36 36
 
37
-          ◯—◯ ← origin/master
38
-         ╱
39
-    ◯—◯—◯—◯—◯ ← master
37
+                                            ◯—◯ ← origin/master
38
+                                           ╱
39
+                                      ◯—◯—◯—◯—◯ ← master
40 40
 
41 41
 [^1]: This is, of course, tough if you are teaching a Github-centric workflow.
42 42
       One way around this may be to get people to initialize their local repositories
... ...
@@ -47,15 +47,15 @@ we need to incorporate the changes on `origin/master` with our ones".
47 47
 With that you introduce `git merge`, and can show the updated history after that
48 48
 operation:
49 49
 
50
-          ◯—◯ ← origin/master
51
-         ╱   ╲
52
-    ◯—◯—◯—◯—◯—◯ ← master
50
+                                            ◯—◯ ← origin/master
51
+                                           ╱   ╲
52
+                                      ◯—◯—◯—◯—◯—◯ ← master
53 53
 
54 54
 then you can `git push origin master` and show what that does locally:
55 55
 
56
-          ◯—◯
57
-         ╱   ╲
58
-    ◯—◯—◯—◯—◯—◯ ← master, origin/master
56
+                                            ◯—◯
57
+                                           ╱   ╲
58
+                                      ◯—◯—◯—◯—◯—◯ ← master, origin/master
59 59
 
60 60
 Teaching this sequence of operations, it is abundantly clear that `git fetch` only
61 61
 updates `origin/master`; it will *never affect what you are working on right now*.