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
parameter | *100033 *Description|
---|---|
--pretty | Available 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 |
No Comment
Post your comment