-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_2_reflections.txt
36 lines (23 loc) · 1.41 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?
Directory .git is created, you need to do it to trace the history of files.
How is the staging area different from the working directory and the repository?
What value do you think it offers?
It's an intermidiate point between these two. It helps transforming
a working directory into a repository.
How can you use the staging area to make sure you have one commit per logical change?
You can use git diff and git diff --staged to show differences between
files in working directory, staging area and latest commit.
What are some situations when branches would be helpful in keeping your history
organized? How would branches help?
Adding experimental feature, translation... Branches can keep version control
of all this changes separately.
How do the diagrams help you visualize the branch structure?
Using diagrams I can quickly see all the commits in different branches
and also if there are experimental commits, not present in any branch.
What is the result of merging two branches together? Why do we represent it in
the diagram the way we do?
Merging of two branches saves all the changes made in both branches.
It's depicted in the diagram like this, because it updates one of the branches.
What are the pros and cons of Git’s automatic merging vs. always doing merges
manually?
Pros: quick, easy. Cons: need to resolve conflicts.