You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
104
104
*[List ignored files.](#list-ignored-files)
105
105
*[Status of ignored files.](#status-of-ignored-files)
106
106
*[Commits in Branch1 that are not in Branch2](#commits-in-branch1-that-are-not-in-branch2)
107
+
*[List n last commits](#list-n-last-commits)
107
108
*[Reuse recorded resolution, record and reuse previous conflicts resolutions.](#reuse-recorded-resolution-record-and-reuse-previous-conflicts-resolutions)
108
109
*[Open all conflicted files in an editor.](#open-all-conflicted-files-in-an-editor)
109
110
*[Count unpacked number of objects and their disk consumption.](#count-unpacked-number-of-objects-and-their-disk-consumption)
@@ -777,6 +778,17 @@ git status --ignored
777
778
git log Branch1 ^Branch2
778
779
```
779
780
781
+
## List n last commits
782
+
```sh
783
+
git log -<n>
784
+
```
785
+
786
+
787
+
__Alternatives:__
788
+
```sh
789
+
git log -n <n>
790
+
```
791
+
780
792
## Reuse recorded resolution, record and reuse previous conflicts resolutions.
0 commit comments