-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlesson_2_reflections.txt
More file actions
20 lines (14 loc) · 1.59 KB
/
Copy pathlesson_2_reflections.txt
File metadata and controls
20 lines (14 loc) · 1.59 KB
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?
A .git folder is created in the directory to make it as a Git Repository and track future commits
How is the staging area different from the working directory and the repository? What value do you think it offers?
Staging area is where files are tracked by Git before they are committed into the repository. Staging area will provide a place where files can be added or removed before committing it to the repository
How can you use the staging area to make sure you have one commit per logical change?
By adding separate files to the stating area and committing with logical description
What are some situations when branches would be helpful in keeping your history organized? How would branches help?
When working on a new experimental feature that is not part of the current branch or to showcase a new functionality to other users.
How do the diagrams help you visualize the branch structure?
Diagram helps to visually compare current branch with the rest of the repository tree 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 the merge creates a new master branch that contains explicit new codes.
What are the pros and cons of Git’s automatic merging vs. always doing merges manually?
Git automatic merging really helps create a new master branch where all the necessary code changes from different branches will be added and provides feedback where there are conflicts. However; Git automatic will not be able to detect the validity of any of the code changes.