-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_2_reflections.txt
58 lines (44 loc) · 2.21 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
QUESTION: What happens when you initialize a repository?
Why do you need to do it?
ANSWER: When you initialize a repository git create a .git
file in the directory. The file signifies the git
metadata that is used to track files and their changes.
Initializing git is necessary to set up git for use and
in creating a repository.
-----------------------------------------------------------
QUESTION: How can you use the staging area to make sure you
have one commit per logical change?
ANSWER: Using the staging area as a holding place
that I can go back to and verify changes before committing
allows helps me ensure I make logical commits.
----------------------------------------------------------
QUESTION: What are some situations when branches would be
helpful in keeping your history organized? How would
branches help?
ANSWER: If I wanted to update a portion of my code
while still keeping the main repository unchanged, I
could create a branch that now has that code.
Another situation is when I want to make a newer version
of the code by keeping some elements but then starting
over on some other elements, I could use a branch of
the main repository to make those changes.
---------------------------------------------------------
QUESTION: How do the diagrams help you visualize the
branch structure?
ANSWER: The branch structure is difficult to visualize
with a diagram. When a thing has many parts to it using
a diagram can't help but given you more understanding.
---------------------------------------------------------
QUESTION: What is the result of merging two branches together?
Why do we represent it in the diagram the way we do?
ANSWER: The result of merging the two branches brings to sets
of commits together. It is the bringing together two different
sets of commits and incorporating them with one another.
Showing it in the diagram allows one to visually see the
branches that are there and then how they are brought
together as one.
--------------------------------------------------------------
QUESTION: What are the pros and cons of Git's automatic
merging vs. always doing merges manually?
ANSWER: I didn't get that Git performs automatic merging. I
felt like I was doing it manually the whole time.