Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Git

Configuration for Git.

Installation

Comes with macOS, but the bundled version is often outdated. Homebrew keeps it current:

brew install git

Files

  • .gitconfig — main configuration
  • .gitignore — global ignore patterns (*~, .DS_Store, tags, .vim/)

Notable settings

  • Pager: diff-so-fancy (brew install diff-so-fancy)
  • Editor: nvim
  • Pull: fast-forward only
  • Push: auto setup remote

Custom aliases

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