-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_2_reflections.txt
30 lines (14 loc) · 1.54 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
-What happens when you initialize a repository? Why do you need to do it?
Git creates special directory, its name starts with dot sign. Git have to tracks file by initializng itself in this directory.
-How is the staging area different from the working directory and the repository? What value do you think it offers?
Staging area is a intermediate entity between working directory and repository. First you have to add changed file in staging area and only than add this changes to repository.
-How can you use the staging area to make sure you have one commit per logical change?
Staging area accamulate files that's belong to one logical change. And then all changes from staging will be commit.
-What are some situations when branches would be helpful in keeping your history organized? How would branches help?
Branches is helpful when you want to make some experimental changes to your project, but don't want to add some messy. You create new branch and do your experimental stuff there.
-How do the diagrams help you visualize the branch structure?
Diagram visualizes git structure =)
What is the result of merging two branches together? Why do we represent it in the diagram the way we do?
The result of merging two branches together is the new branch that collect all new code, delete deleted code. Diagram shows us in more readeble view structure of relationships between commits.
-What are the pros and cons of Git’s automatic merging vs. always doing merges manually?
Automatic Git's merging can't resolv conflicts, but you can do it manually.