-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_2_reflections.txt
28 lines (19 loc) · 1.25 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
What happens when you initialize a repository? Why do you need to do it?
When I initialized the directory .git is created, and I can start
to make commits of my changes. Otherwise this would be imposible
How is the staging area different from the working directory and the repository?
What value do you think it offers?
The Staging Area is a middle step before updating changes from the working
directory to the repository. You can select some files to commit and some
others not to. This gives advantage in separate commits into groups of related
files.
It also allows to make commits while one is not connected to the internet.
How can you use the staging area to make sure you have one commit per logical change?
Executing "git status" and also "git diff". The last one will check differences
between files in the working area and in the staging area.
What are some situations when branches would be helpful in keeping your history organized?
How would branches help?
Branches are usefull when I want to try some new things on the code separated from
the master. It seperates code so it would be easy to have different versions of it.
How do the diagrams help you visualize the branch structure?
One can see the entire tree of branches and masters.