forked from YuweAEC/learning-git-and-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog-and-diff.txt
35 lines (25 loc) · 1.15 KB
/
log-and-diff.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
here, we all will see various flag's of git log which are used to see the information and the details of or various commits entire that repo
we will alaso be able to see the a new command , i.e ,git diff in this futher
# git log
-> git log --oneline :
- lists one commit per line
- shows the first 7 characters of the commit's SHA
- shows the commit's message
-> git log --stat :
- displays the file(s) that have been modified
- displays the number of lines that have been added/removed
- displays a summary line with the total number of modified files and lines that have been added/removed
-> git log -p :
- displays the files that have been modified
- displays the location of the lines that have been added/removed
- displays the actual changes that have been made
-> git log -w :
- to ignore changes to whitespace
-> git log --decorate :
-
# git diff
the chsnges that have made but not save or committed yet will be shown be this command
this command will show ->
- the files that we modified.
- the location of the lines from where we added or removed anything
- and the changes that we made in this in files