-
Notifications
You must be signed in to change notification settings - Fork 0
/
lesson_2_reflections.txt
32 lines (26 loc) · 1.62 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
What happens when you initialize a repository? Why do you need to do it?
Just opens a new repository for my work to be tracked later, and I need
it to make commits that will help me to keep track my work.
How is the staging area different from the working directory and the repository?
What value do you think it offers?
It is different in that it's considered as intermediate stage between both of
the repository and the working directory.
It's value is in it allow the repository to make to commits to separate files.
How can you use the staging area to make sure you have one commit per logical change?
Just by using git diff that will compare between staging area and working
directory and the add the changes to staging area the use git diff --staged
to compare between stageg area and the most recent commit.
What are some situations when branches would be helpful in keeping your
history organized? How would branches help?
when I need to make some expermental changes without affecting the main branch
or the master branch. that will help me to make comits on branches leaving
the main branch the same.
How do the diagrams help you visualize the branch structure?
It helped me alot to understand that I may lost my work if there is no branch.
What is the result of merging two branches together?
Why do we represent it in the diagram the way we do?
A combined commit
What are the pros and cons of Git’s automatic merging vs. always doing merges manually?
auto merging will help to making merging faster and may save alot of time
instead of looking through all the code and then update it will merge in
a second.