-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_2_reflections.txt
40 lines (18 loc) · 1.43 KB
/
lesson_2_reflections.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
What happens when you initialize a repository? Why do you need to do it?
Basically it is to say that you want to control versions of the repository on
your computer. it makes a .\git folder which has the commits inside
How is the staging area different from the working directory and the repository? What value do you think it offers?
You can determine how you actually want the order of the commits and the bundle
of commits to be when you are trying change several files as once
How can you use the staging area to make sure you have one commit per logical change?
Basically, when you have a change in several files that are related to each other,
it is logical to apply changes.
What are some situations when branches would be helpful in keeping your history organized? How would branches help?
sometimes we want to try something new but don't want to ruin everything before.
also we want to create another version of the same thing
How do the diagrams help you visualize the branch structure?
They help us by having the whole picture at once
What is the result of merging two branches together? Why do we represent it in the diagram the way we do?
It is a new branch that has both. To have a better understanding of the merging process
What are the pros and cons of Git’s automatic merging vs. always doing merges manually?
The problem with automatic merging is that sometime there will be lines of code that you don't want to merge.