-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_2_reflections.txt
37 lines (31 loc) · 1.86 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
What happens when you initialize a repository? Why do you need to do it?
The system established the directory tree as a git repository by creating .git
directory.
How is the staging area different from the working directory and the repository?
What value do you think it offers?
The working directory holds all of the files and directories for the repository
in the .git directory all of the older versions of the files are stored as
well.
The Staging area is a logicial set of files that will be commited as a group to
the repository
The Repository is the logical set of files that make up all of the files for
the project.
How can you use the staging area to make sure you have one commit per logical
change?
You need to stage all of the files for a particular change. Once all of the files
For the change asre staged, then we can actually go and commit the changes.
What are some situations when branches would be helpful in keeping your history
organized? How would branches help?
Experiment features. Allow parrell development
Features that are not ready for deployment, allows some development and us to wait.
possilble custom versions of a particular produce for multiple clients.
How do the diagrams help you visualize the branch structure?
Helps with the understanding of the commit branch and tree structure.
What is the result of merging two branches together? Why do we represent it in
the diagram the way we do?
You get the code that wants to be included from both branches into the final files.
You end up with only one branch. (In our case the Master Branch) The diagrams show the divergance of code from Master and the re-integration of code back into another branch.
What are the pros and cons of Git's automatic merging vs. always doing merges
manually?
It's nice that git does some of the merges for us if they are obvious. Sort of
better than nothing.