File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -58,3 +58,20 @@ the diagram the way we do?
58
58
commit was made. For merge commits, there was no one state of the files
59
59
before the commit was made, since the merge commit combines two commits
60
60
together, so it makes sense for the merge commit to have two parents.
61
+
62
+ What are the pros and cons of Git’s automatic merging vs. always doing merges
63
+ manually?
64
+
65
+ Git's automatic merging can save the user a lot of time! Especially when
66
+ multiple people are working together, merging everything manually could be
67
+ very painful.
68
+
69
+ The downside of automatic merging is that it's not perfect. Merging the
70
+ coins branch with the master branch, which included color, resulted in
71
+ inconsistent visuals, where most items were colored but the coins were not.
72
+ Git could even make worse mistakes - for example, if one branch deleted a
73
+ function, and another branch added a call to that function, Git would merge
74
+ those together with no conflict and the resulting code would be broken.
75
+
76
+ Overall, Git's merging can save a lot of time, but it's important to always
77
+ double check that the code still works after doing a merge.
You can’t perform that action at this time.
0 commit comments