[user] name = Thomas Dy email = thatsmydoing@gmail.com [merge] conflictstyle = diff3 [core] autocrlf = input hooksPath = ~/.config/git/hooks [delta] features = side-by-side line-numbers decorations whitespace-error-style = 22 reverse [delta "decorations"] commit-decoration-style = bold yellow box ul file-style = bold yellow ul file-decoration-style = none [color] ui = true [diff] algorithm = patience [difftool] prompt = false [difftool "difft"] cmd = difft "$LOCAL" "$REMOTE" [push] default = current [branch] # we use a hook to set this up instead autoSetupMerge = false [remote] pushDefault = origin [alias] root = !pwd lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit" p = push pf = push --force-with-lease ff = merge --ff-only @{upstream} ru = rebase @{upstream} riu = rebase -i @{upstream} riau = rebase -i --autosquash @{upstream} ca = commit --amend smash = "!git add -u && git ca --no-edit && git pof" reset-head = remote set-head origin -a ff-head = "!git push . origin/HEAD:$(git head)" head = for-each-ref --format="%(symref:lstrip=-1)" refs/remotes/origin/HEAD sh = "!git switch $(git head)"