-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_1_reflections.txt
41 lines (32 loc) · 1.96 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
Note to Babs: Add further answers from ubuntu laptop
How did viewing a diff between two versions of a file help you see the bug that
was introduced?
A: this was a side-by-side but with more command-line-like format and i could
easily see where a mistake had been made.
How could having easy access to the entire history of a file make you a more
efficient programmer in the long term?
A: I can always go back to find 'why' i did things, or why a colleague did
something. It will be easier to fix bugs without having to do a side-by-side
line-by-line diff, since the tools do it for me
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?
A: pros of manually choosing when to do a commit is that i can make sure that
they are at logical points and i can add a comment each time. con is that it is
manual and i might forget. Another pro is that i might not have as many versions
as an automatic one
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?
A: Git is more for things like software projects where all the files belong
together to form a whole, so the sum of the files at a particular point is what
makes a project.
How can you use the commands git log and git diff to view the history of files?
Git log shows me the commit history. Git diff shows me the difference between
two commits or two files or two versions of files or the staging vs master or
staging vs working directory
How might using version control make you more confident to make changes that
could break something?
A: I know that i can easily roll back and it will be easy to ensure that people
coming after me will know why i made a change, so trust grows.
Now that you have your workspace set up, what do you want to try using Git for?
A: I will look into some Android development tutorials.