2
2
Gitlog reference
3
3
<h3 > #git log</h3 >
4
4
<div class =" snippet-clipboard-content position-relative " data-snippet-clipboard-copy-content =" Gitlog " ><pre ><code >
5
- [ centos@master gitpr] $ git log
5
+ [ centos@master gitpr] $< body style = " background-color : powderblue ; " > git log </ body >
6
6
commit 8bcf05ee70c9fd36d0f253a5625e03edb79268ec (HEAD -> feature.xyz, origin/feature.xyz)
7
7
Author: rajkumarrt < 77945664+rajkumarrt@users.noreply.github.com >
8
8
Date: Wed Jul 14 18:47:53 2021 +0530
@@ -11,18 +11,18 @@ Date: Wed Jul 14 18:47:53 2021 +0530
11
11
<h3 > #Filetering</h3 >
12
12
<div class =" snippet-clipboard-content position-relative " data-snippet-clipboard-copy-content =" Gitlog " ><pre ><code >
13
13
<b > #Filetr by Date </b >
14
- [ centos@master gitpr] $ git log --after="2021-01-07"
14
+ [ centos@master gitpr] $< body style = " background-color : powderblue ; " > git log --after="2021-01-07" </ body >
15
15
commit 8bcf05ee70c9fd36d0f253a5625e03edb79268ec (HEAD -> feature.xyz, origin/feature.xyz)
16
16
Author: rajkumarrt < 77945664+rajkumarrt@users.noreply.github.com >
17
17
Date: Wed Jul 14 18:47:53 2021 +0530
18
18
19
- git log --after="2021-01-07" --before="2021-05-07"
19
+ < body style = " background-color : powderblue ; " > git log --after="2021-01-07" --before="2021-05-07"
20
20
git log --after="today"
21
21
git log --after="yesterday"
22
- git log --after="1 week ago"
22
+ git log --after="1 week ago" </ body >
23
23
24
24
<b > #Filter by File </b >
25
- [ centos@master gitpr] $ git log index.html
25
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git log index.html </ body >
26
26
commit 8bcf05ee70c9fd36d0f253a5625e03edb79268ec (HEAD -> feature.xyz, origin/feature.xyz)
27
27
Author: rajkumarrt < 77945664+rajkumarrt@users.noreply.github.com >
28
28
Date: Wed Jul 14 18:47:53 2021 +0530
@@ -39,11 +39,10 @@ Date: Wed Jul 14 09:00:47 2021 -0400
39
39
Index.html added
40
40
41
41
<b > #Filter by Content </b >
42
- [ centos@master gitpr] $ git log -S"This is "
42
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git log -S"This is " </ body >
43
43
commit 35e6087965c508b137e986874ab501b20506c4d9
44
44
Author: rajkumarrt < rajkumarrt@gamil.com >
45
45
Date: Wed Jul 14 09:24:24 2021 -0400
46
-
47
46
test file
48
47
49
48
commit 5d49fb242b5dffe21d685588ed369348ba68b484
@@ -54,12 +53,12 @@ Date: Wed Jul 14 09:00:47 2021 -0400
54
53
55
54
<div class =" snippet-clipboard-content position-relative " data-snippet-clipboard-copy-content =" Gitlog " ><pre ><code >
56
55
<b >#Merge commits </b >
57
- [ centos@master gitpr] $ git log master..feature
56
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git log master..feature </ body >
58
57
</code ></pre ></div >
59
58
60
59
<div class =" snippet-clipboard-content position-relative " data-snippet-clipboard-copy-content =" Gitlog " ><pre ><code >
61
60
<b >#Format output </b >
62
- [ centos@master gitpr] $ git log --pretty=format:"%Cred%an - %Cgreen%ar%n %Cblue %h -%Cgreen %s %n"
61
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git log --pretty=format:"%Cred%an - %Cgreen%ar%n %Cblue %h -%Cgreen %s %n" </ body >
63
62
rajkumarrt - 6 days ago
64
63
8bcf05e - update
65
64
@@ -81,7 +80,7 @@ rajkumarrt - 6 days ago
81
80
rajkumarrt - 8 days ago
82
81
101ee3f - Added the package
83
82
84
- [ centos@master gitpr] $ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
83
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit </ body >
85
84
* 8bcf05e - (HEAD -> feature.xyz, origin/feature.xyz) update (5 days ago) <rajkumarrt >
86
85
* 35e6087 - test file (5 days ago) <rajkumarrt >
87
86
* 5d49fb2 - Index.html added (5 days ago) <rajkumarrt >
@@ -97,7 +96,7 @@ rajkumarrt - 8 days ago
97
96
* 461b64c - index.js updated (8 days ago) <rajkumarrt >
98
97
* 1df215d - First update (8 days ago) <rajkumarrt >
99
98
100
- [ centos@master gitpr] $ git log --decorate
99
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git log --decorate </ body >
101
100
commit 8bcf05ee70c9fd36d0f253a5625e03edb79268ec (HEAD -> feature.xyz, origin/feature.xyz)
102
101
Author: rajkumarrt < 77945664+rajkumarrt@users.noreply.github.com >
103
102
Date: Wed Jul 14 18:47:53 2021 +0530
@@ -113,7 +112,7 @@ Author: rajkumarrt <rajkumarrt@gamil.com>
113
112
Date: Wed Jul 14 09:00:47 2021 -0400
114
113
Index.html added
115
114
116
- [ centos@master gitpr] $ git shortlog
115
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git shortlog </ body >
117
116
rajkumarrt (12):
118
117
First update
119
118
index.js updated
@@ -128,7 +127,7 @@ rajkumarrt (12):
128
127
test file
129
128
update
130
129
131
- [ centos@master gitpr] $ git reflog
130
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git reflog </ body >
132
131
8bcf05e (HEAD -> feature.xyz, origin/feature.xyz) HEAD@{0}: rebase (continue) (finish): returning to refs/heads/feature.xyz
133
132
8bcf05e (HEAD -> feature.xyz, origin/feature.xyz) HEAD@{1}: rebase (continue): update
134
133
35e6087 HEAD@{2}: rebase (continue): test file
@@ -156,7 +155,7 @@ f8795a2 HEAD@{19}: pull: Fast-forward
156
155
1df215d HEAD@{25}: commit (initial): First update
157
156
158
157
159
- [ centos@master gitpr] $ git log --oneline
158
+ [ centos@master gitpr] $ < body style = " background-color : powderblue ; " > git log --oneline </ body >
160
159
8bcf05e (HEAD -> feature.xyz, origin/feature.xyz) update
161
160
35e6087 test file
162
161
5d49fb2 Index.html added
0 commit comments