-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreflections.txt
66 lines (44 loc) · 3.24 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
How did viewing a diff between two versions of a file help you see the bug that
was introduced?
Viewing diffrences help us find any error and save time and of course money when we are in a timeline project
How could having easy access to the entire history of a file make you a more
efficient programmer in the long term?
It's a good way to stablish the advances or delays of a project
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?
If there is a typo, that's will be saved too and it will afect the version control counter in a bad way. A pro is that files will be saved and can be recovered faster
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?
Google docs is not made for developing projects. The concept in Git is opossite
How can you use the commands git log and git diff to view the history of files?
Git Log
We have to clone a repository first, then execute "git log". We will see the changes history of that repository
Git Diff
Git diff Show changes between the working tree and the index or a tree, changes between the index and a tree, changes between two trees, changes between two blob objects, or changes between two files on disk.
It has to be used as follows
git diff [options] [<commit>] [--] [<path>…]
git diff [options] --cached [<commit>] [--] [<path>…]
git diff [options] <commit> <commit> [--] [<path>…]
git diff [options] <blob> <blob>
git diff [options] [--no-index] [--] <path> <path>
How might using version control make you more confident to make changes that
could break something?
We'll always know what we are doing and what we did in case of any major problem
Now that you have your workspace set up, what do you want to try using Git for?
I want to learn how colaboration works. I have never used any CV system before
Reflect: Using History for Efficiency
Now that you've learned about some version control systems, and how they can help you save the history of a file, go add the following question and your thoughts on it to your reflections file:
How could having easy access to the entire history of a file make you a more efficient programmer in the long term?
As I said earlier, having version hystory stands the opportunity of develop the app in the stimated time, because we always would know what we have been changing.
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?
Manually
pros:
- We have the control of when to save modifications and fixes
Cons:
- In case of an electrical failure we can lose all the work
Automatically
Pros: we are going to have updated our work
Cons: too much versions
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?
Becasuse developers need to have control of every change they make on alll files of a project