In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what are the format in git log". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what format are in git log.
The format of the default git log is not particularly intuitive, and most of the time you want to output more or less information more easily. Here are a few format of git log. Can be customized according to your own needs.
The git log command accepts a-- pretty option to determine the format of the output.
For example:
If we only want to output hash.
Git log-- pretty=format: "% h"
Detailed commands:
'% H': commit hash
'% h': abbreviated commit hash
'% T': tree hash
'% t': abbreviated tree hash
'% P': parent hashes
'% p': abbreviated parent hashes
'% an': author name
'% aN': author name (respecting .mailmap, see git-shortlog or git-blame)
'% ae': author email
'% aE': author email (respecting .mailmap, see git-shortlog or git-blame)
'% ad': author date (format respects-- date= option)
'% aD': author date, RFC2822 style
'% ar': author date, relative
'% at': author date, UNIX timestamp
'% ai': author date, ISO 8601-like format
'% aI': author date, strict ISO 8601 format
'% cn': committer name
'% cN': committer name (respecting .mailmap, see git-shortlog or git-blame)
'% ce': committer email
'% cE': committer email (respecting .mailmap, see git-shortlog or git-blame)
'% cd': committer date (format respects-- date= option)
'% cD': committer date, RFC2822 style
'% cr': committer date, relative
'% ct': committer date, UNIX timestamp
'% ci': committer date, ISO 8601-like format
'% cI': committer date, strict ISO 8601 format
'% d': ref names, like the-- decorate option of git-log
'% D': ref names without the "(", ")" wrapping.
'% eBay: encoding
'% slots: subject
'% f': sanitized subject line, suitable for a filename
'% baked: body
'% B': raw body (unwrapped subject and body)
'% N': commit notes
'% GG': raw verification message from GPG for a signed commit
At this point, I believe you have a deeper understanding of "what format are in git log". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.