How to optimize git output
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!