Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to optimize git output

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to optimize git output". In daily operation, I believe many people have doubts about how to optimize git output. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to optimize git output". Next, please follow the editor to study!

/ / the default git log time zone is UTC + 0000

/ / China's time zone is UTC + 8000

Git log-- date=local / / is effective temporarily

/ / or

Git config-- global log.date local / / takes effect globally

/ / View

Git config-list

If you want a permanent effect instead of typing every time, please try

Git config log.date iso

Or, for all git uses that you use this account

Git config-global log.date iso

Tree output

Git log-- graph-- pretty=format:'%C (yellow)% h%Creset -% C (cyan)% d%Creset% s% Cgreen (% an,% cr)'- abbrev-commit

Alias configuration

Git config-- global alias.ll "log-- graph-- pretty=format:'%C (yellow)% h%Creset -% C (cyan)% d%Creset% s% Cgreen (% an,% cr)'- abbrev-commit"

Eos submission record

Git color output configuration

Git config-- global color.status autogit config-- global color.diff autogit config-- global color.branch autogit config-- global color.interactive auto at this point, the study on "how to optimize git output" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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: 302

*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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report