What are your favorite Git configuration settings which make your life easy while working with Git?
# There are 3 levels of git config; project, global and system.
The git config command is a convenience function that is used to set Git configuration values on a global or local project level. These configuration levels correspond to . gitconfig text files. Executing git config will modify a configuration text file.
The Git configuration file contains a number of variables that affect the Git commands' behavior. The . git/config file in each repository is used to store the configuration for that repository, and $HOME/. gitconfig is used to store a per-user configuration as fallback values for the . git/config file.
Best one I have was picked up off Scott Chacon from a talk he gave:
[alias]
lol = log --pretty=oneline --abbrev-commit --graph --decorate
I get excited every time I type git lol
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With