-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_1_ref.txt
34 lines (20 loc) · 1.12 KB
/
lesson_1_ref.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
diff can be used to compare different files.
It gives the position where difference between the 2 files which are compared
exists.
When u have easy access to the history of the file it can be pretty helpful in
viewing what all changes have been made to the file.
One commit per logical change
Difference between auto commit ex:google docs and manual commit??
Auto commit u dont know what time the commit ll happen
Manual is good but it should be done by taking in to consideration "ONE commit
per logical changE.
Project has several files related to each other for proper functioning of the
project. A collection of files is called a "REPOSITORY" in git,
whenever a commit is made to a file in a project revision is made to all the
files in that project for proper functioning of that project.
git config --global color.ui auto
Using git log and git diff??
git log gives the history of all the commit that were made to a file and gives a unique commit id,
git diff is used to compare to files and its format is git diff commit_id1 commit_id2.
git diff commit_id1(old_version) commit_id2(new_version)
git init: creates a repo