Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

git

See Learn Git | Ben's Corner for notes on using git.

Install

My git config requires git-credential-manager, git-delta and neovim:

brew install git-delta neovim

Install Git Credential Manager:

MacOS:

brew install --cask git-credential-manager

Debian: 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 ./git

Architecture

My 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.