-
Notifications
You must be signed in to change notification settings - Fork 0
/
lesson_2_reflections.txt
36 lines (30 loc) · 1.62 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
What happens when you initialize a repository? Why do you need to do it?
.git folder created. And I can work with repository.
How is the staging area different from the working directory
and the repository? What value do you think it offers?
All changes goes from working directory
into repository through staging area
With staging area I can separate changed file form
working directory in several different commits.
How can you use the staging area to make sure you have one commit per logical change?
git diff --staged
What are some situations when branches would be helpful in keeping your
history organized? How would branches help?
Branching can be helpful when i want to make some experimental changes.
If i want to have some version of the project always available
Whenever i began to do something new i will make branch. To teach context.
To organise thing when working with others
How do the diagrams help you visualize the branch structure?
In diagrams I can clearly see what commit reachable from branches.
(what branch contains which comment)
And commit history what parents have each comment.
What is the result of merging two branches together?
Why do we represent it in the diagram the way we do?
It is commit with two parents.
What are the pros and cons of Git’s automatic merging vs. always
doing merges manually?
Git prepare merge so one can easily see and find place where
file was both modified and what was changed.
After successful merge without conflict. New version of file may
contain new code that is not familiar to person that make merge.
In manuall way you alway look on code that is you merging.