by Devin Yang
(This article was automatically translated.)

Published - 1 year ago ( Updated - 1 year ago )

How to display your own version control through git commands?
These commands are for reference only, at least you should change the author name.

--author's parameter, it can also be mailbox

Single-line date range

git log --pretty=oneline --since="2022-12- 17" --until="2022-12-18" --author="devin"

format

git log --pretty=format:"% an --- %s" --since="2022-12-10" --until="2022-12-18" --author="devin"


Check 7 All your own version control within the day (we can write it as an alias, and it will be very convenient to list it when executing it)

git log --pretty="format:%h %s -- %aD %cn" --since="7 days ago" --author=devin --stat

*100033 *Description* 100067*
parameter
--prettyAvailable values: oneline, short, medium, full, fuller, email, raw, format*100042 *
format: "Format below"
%an author's name
%H full SHA-1 hash
other
%h abbreviated commit hash,
%ae author mailbox
%cn committer name,
%ce commiter email,
%cd commit date (committer date)
%e encod ing
%s subject
%n newline
--since"yyyy-mm-dd" start date
--until"yyyy-mm-dd" Completion Date
--author"John Doe" Author Name

Tags: git

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


git

Through the Git attribute, different codes such as big5 and gb2312 are normally displayed at the same time during diff

The problem of garbled characters in different Chinese encodings, here is an example, for example, what will be displayed when there are three php files with different encodings at the same time. Let's look at the results directly through git log -p, and we will find that there are unintelligible garbled characters....

git

Use the git logt command to quickly list your own or others' commits

Here are two commands to quickly list all commits of yourself or others

git,Synology

Sharing about gitlab's docker settings

My friend wants to study the operation of gitlab. I said that it takes less than ten minutes to install it with docker image. There is also a gitlab package on my Synology Nas that can be installed directly. As a result, either the installation failed, or it was being repaired, or it was already started and could not be used. @@ Also choked by friends...