Useful global git settings in ~/.gitconfig file.
~/.gitconfig
[fetch] prune = true [core] excludesfile = ~/.gitignore pager = less -FXR [init] defaultBranch = main [pager] branch = false