Configuration for Git.
Comes with macOS, but the bundled version is often outdated. Homebrew keeps it current:
brew install git.gitconfig— main configuration.gitignore— global ignore patterns (*~,.DS_Store,tags,.vim/)
- Pager: diff-so-fancy (
brew install diff-so-fancy) - Editor:
nvim - Pull: fast-forward only
- Push: auto setup remote
| Alias | Description |
|---|---|
graph |
Pretty git log with graph and colors |
submodule-add-ignore |
Add a submodule and set ignore = all — keeps git status clean by hiding submodule changes |
submodule-purge |
Completely remove a submodule — automates the multi-step deinit/rm process |
subdirs |
Run a git command in all sub-directory repos — useful for bulk status checks or pulls |
subdirs-p |
Same as subdirs but in parallel — faster for slow operations like fetch |