-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson-2-reflections.txt
43 lines (18 loc) · 1.32 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
What happens when you initialize a repository?Why do you need to do it?
git repositroy with 0 commits is made and .git file is added. So that changes can be tracked
How is the staging area different from the working directory and the repository? What value do you think it offers?
It stores the files which will be added to a commit together. It helps keep logically related files together.
How can you use the staging area to make sure you have one commit per logical
change?
Add only the files related to one logical change to the staging area
What are some situations when branches would be helpful in keeping your history
organized? How would branches help?
If I want to make two unrelated changes to the file and keep them seperate
How do the diagrams help you visualize the branch structure?
It gives a representation telling when the branch diverged and what changes were made in the branches following that
What is the result of merging two branches together? Why do we represent it in
the diagram the way we do?
Changes made in both are added to form a new commit. Easy visulisation
What are the pros and cons of Git's automatic merging vs. always doing merges
manually?
Always doing manually will help us keep a track of all the changes we are doing and avoid mistakes but it will be a very lengthy process