File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -72,4 +72,25 @@ To restore changes to a file use
72
72
> git restore <file-name\>
73
73
74
74
To unstage a file use
75
- > git restore --staged <file-name\>
75
+ > git restore --staged <file-name\>
76
+
77
+ To view the history of your commits use
78
+ > git log
79
+
80
+ To view commits history with shorter identifiers use
81
+ > git log --abbrev-commit
82
+
83
+ To view your commits history in different configuration
84
+ > git log --oneline --graph --decorate
85
+
86
+ To view commits history between specific commits use
87
+ > git log <commit-name-1\> <commit-name-2\>
88
+
89
+ To perform date based search on commits use
90
+ > git log --since="3 days ago"
91
+
92
+ To view commit history for a particular file use
93
+ > git log -- <file-name\>
94
+
95
+ To go through the renames for a specific file us
96
+ > git log --follow -- <path-to-file\>
You can’t perform that action at this time.
0 commit comments