-
Notifications
You must be signed in to change notification settings - Fork 0
/
lesson02.txt
21 lines (15 loc) · 1.19 KB
/
lesson02.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
*What happens when you initialize a repository? Why do you need to do it?
-Create the metadata storage directory.
*How is the staging area different from the working directory and the repository? What value do you think it offers?
-Working directory contains the copy of the code the user currently working on.
-Staging area contains the changes made in the working directory since the last commit in the repository.
*How can you use the staging area to make sure you have one commit per logical change?
-Only add files related to the logical change to the staging area.
*What are some situations when branches would be helpful in keeping your history organized? How would branches help?
-Experimental changes; Continue development while maintaining production fixes
*How do the diagrams help you visualize the branch structure?
-Make reachability more clear
*What is the result of merging two branches together? Why do we represent it in the diagram the way we do?
-A new commit with changes from both branches
*What are the pros and cons of Git¡¦s automatic merging vs. always doing merges manually?
-Auto can help lessen the workload of merging by auto-merging obvious differences.