-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_2_reflections.txt
20 lines (14 loc) · 1.46 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
What happens when you initialize a repository? Why do you need to do it?
Git initialises the metadata tracking for the repository. It needs to be done to set up version tracking.
How is the staging area different from the working directory and the repository? What value do you think it offers?
The staging area is the files that are in the working directory that are yet to be added to the repository. It allows us to see which files are not being tracked, and only add in files that we want to track.
How can you use the staging area to make sure you have one commit per logical change?
You group all the files that are changing on the commit in the staging area, then commit them with a logical comment.
What are some situations when branches would be helpful in keeping your history organized? How would branches help?
Branches can help keep different logical changes organized.
How do the diagrams help you visualize the branch structure?
They show the reachability of the branches.
What is the result of merging two branches together? Why do we represent it in the diagram the way we do?
git takes all the + and - lines from each branch and updates the original parent file. The diagram shows them merging together, because they are still two parent structures.
What are the pros and cons of Git’s automatic merging vs. always doing merges manually?
git automatically merging saves a lot of hassle, but sometimes there are conflicts that need to be resolved.