Skip to content

Commit d9503a0

Browse files
authored
Create git logfile
1 parent e9ad78f commit d9503a0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

GIT/git logfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
git log > commits.txt
2+
3+
git log --before="2019-2-23" --pretty=format:'"%h","%an","%ae","%aD","%s",' --shortstat --no-merges | paste - - - > log.txt
4+
5+
git log --pretty=format:"%ad - %an: %s" --after="2021-01-01" --until="2021-06-30" > git_log.txt
6+
7+
You can make log report more clearly, by
8+
9+
(1) setting number of latest commits (for example, in below command, we get latest 50 commits, you can change it to 100, 500, etc.)
10+
11+
(2) display long commit in one line This command is display commit log in current branch:
12+
13+
git log --oneline -50 > log50_latest_commits.txt
14+
(3) If you want display commit at all branch
15+
16+
git log --all --oneline -50 > log50_latest_commits.txt
17+
Generated text file will stand at the current directory.
18+
19+
Reference: https://git-scm.com/docs/git-log

0 commit comments

Comments
 (0)