dot_files/.config/git/config
2023-12-06 14:01:40 +01:00

46 lines
932 B
Text

# set better default colors
[color]
ui = auto
[color "branch"]
current = green bold
local = green dim
remote = blue
[color "diff"]
meta = yellow bold
frag = magenta ul
old = magenta bold
new = green bold
[color "status"]
added = green
changed = yellow
untracked = magenta
# set the default branch to main
[init]
defaultBranch = main
# always push up local branches to the remote origin
[push]
autoSetupRemote = true
default = current
# default rebase commits to avoid merge issues
[pull]
rebase = true
# personal stuff like gpg config, username, etc
[includeIf "gitdir:~/"]
path = ~/.config/git/personal
# aliases, mostly fixing typos
[alias]
root = rev-parse --show-toplevel
psuh = push
puhs = push
commti = commit
comit = commit
ocmmit = commit
chekout = checkout
checkut = checkout
checkuot = checkout
chekcout = checkout