-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_2_reflections.txt
25 lines (14 loc) · 1.03 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
What happens when you initialize a repository? Why do you need to do it?
A new git repository will be created without any commits. Initialize a new git repository.
How is the staging area different from the working directory and the repository? What value do you think it offers?
Staging area specifies what goes into next commit. you can have other file changes which you dont want to commit yet.
How can you use the staging area to make sure you have one commit per logical change?
Staging changes for one logical change and then commit.
What are some situations when branches would be helpful in keeping your history organized? How would branches help?
Experiment without disturbing the original
Take base code and develop something new.
What is the result of merging two branches together? Why do we represent it in the diagram the way we do?
Success or merge conflict.
because two branches are merged to single branch.
What are the pros and cons of Git’s automatic merging vs. always doing merges manually?
Saves time, effort, energy.