-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_1_reflections.txt
42 lines (29 loc) · 2.08 KB
/
lesson_1_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
38
39
40
41
42
How did viewing a diff between two versions of a file help you see the bug that
was introduced?
Git diff command shows the lines where compared file versions differ.
I don't have to go through the whole file to look for changes in which a bug may have been introduced.
How could having easy access to the entire history of a file make you a more
efficient programmer in the long term?
I can track all the changes made in the file. I can easily and quickly find an error, and go back to previous stable version if needed.
What do you think are the pros and cons of manually choosing when to create a
commit, like you do in Git, vs having versions automatically saved, like Google
docs does?
pros:
- creating commit where is a logical sense to do it
- clearer and meaningful history
- easier to work on - making alternative versions or tracking bugs
cons:
- losing power, hardware malfunction or other, may cause uncommited/unsaved data loss
- commits may be too big or too small when you do it manually, you have to keep that in mind to commit when you should, to maintain logical sense
Why do you think some version control systems, like Git, allow saving multiple
files in one commit, while others, like Google Docs, treat each file separately?
Git is made for code maintenance, it tracks multiple files because changes made in these files may be related to each other.
Google docs is more general purpose file storage system, that's why it focuses on one file at the time.
How can you use the commands git log and git diff to view the history of files?
git log lists all commits for the given repository
git diff lets me compare two commits and view the changes between them
How might using version control make you more confident to make changes that
could break something?
I am more confident in coding and more likely to experiment when I know that all my changes are reversible.
Now that you have your workspace set up, what do you want to try using Git for?
I would like to use Git for all my future projects. I would like to master Git so I can freely use it in the future.