Skip to content

Commit 61a8b4c

Browse files
committedSep 30, 2014
Add "Automatic vs. manual merging" reflection
1 parent b719bf6 commit 61a8b4c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 

‎lesson_2_reflections.txt

+17
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,20 @@ the diagram the way we do?
5858
commit was made. For merge commits, there was no one state of the files
5959
before the commit was made, since the merge commit combines two commits
6060
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.

0 commit comments

Comments
 (0)