-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitReflections.txt
More file actions
37 lines (23 loc) · 1.38 KB
/
GitReflections.txt
File metadata and controls
37 lines (23 loc) · 1.38 KB
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
How did viewing a diff between two versions of a file help you see the bug that
was introduced?
It highlights differences in context
How could having easy access to the entire history of a file make you a more
efficient programmer in the long term?
Make it easy to find changes and revert errors 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?
Log related changes together, so comparing versions is more useful.
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 designed for managing changes to code, which is normally written in more than one related file. In Google Docs, documents would be able to serve a function by themselves.
How can you use the commands git log and git diff to view the history of files?
git log
git log --grep '<commit text'
git log --stat
git diff <commit-id> <commit-id>
How might using version control make you more confident to make changes that
could break something?
It is easy to roll back to an earlier commit if something is broken and search the difference between commits for errors
Now that you have your workspace set up, what do you want to try using Git for?
New code projects