See Learn Git | Ben's Corner for notes on using git.
My git config requires git-credential-manager, git-delta and neovim:
brew install git-delta neovimInstall Git Credential Manager:
MacOS:
brew install --cask git-credential-managerDebian: follow this.
Ensure /usr/local/bin is in the PATH:
# dpkg puts git-credential-manager here
export PATH="$PATH:/usr/local/bin"Symlink these files from the dotfiles repo root:
fling link -s ./gitMy Git setup is somewhat complicated, but the gist of it is:
~/.gitconfig loads common settings
~/.gitconfig uses includeIf with directories to override / load more git configuration if I'm in that directory and the configuration exists. Some of the files referenced in the includeIf exist in my work dotfiles repo, not this one.
When I'm on my personal laptop, those files don't exist and my work config (things likeuser.email = ben@work.com ) isn't loaded. When I'm on my work laptop, those files DO exist and the git config is set up for work in those directories.