-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlessons_2_reflections.txt
26 lines (20 loc) · 1.39 KB
/
lessons_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
What happens when you initialize a repository? Why do you need to do it?
A .git file is created but your files remain untracked. To ready the repo to accept commits.
How is the staging area different from the working directory and the repository? What value do you think it offers?
The staging area differs in that it is only a temporay holder where as both the
working directory and the repository are permanent storage.
How can you use the staging area to make sure you have one commit per logical change?
use git status to show staged files and git diff to show changes between
working dir and staging area, and git diff --stage to show changes
between staging area and the repo.
What are some situations when branches would be helpful in keeping your history organized?
How would branches help?
A major change in design like mobile first. Branches would allow for significant changes
to be tried out, without affecting the current working model.
How do the diagrams help you visualize the branch structure?
They show the linear nature of the branches.
What is the result of merging two branches together?
Why do we represent it in the diagram the way we do?
Their commit history is merged and ordered by date.
What are the pros and cons of Git’s automatic merging vs. always doing merges manually?
Automatic will work barring a conflict. Resolving conflict then commit - easy.