[user]
    name = "Martin Larsson"
    email = "larssonmartin1998@gmail.com"
    
[core]
    compression = 9
    whitespace = error
    preloadindex = true
    untrackedCache = true
    pager = delta

[status]
    branch = true
    showStash = true
    showUntrackedFiles = all

[diff]
    context = 3
    renames = copies
    interHunkContext = 10
    algorithm = histogram

[delta]
    navigate = true
    dark = false
    side-by-side = true
    pager = "less --RAW-CONTROL-CHARS --quit-if-one-screen"

[interactive]
    singleKey = true
    diffFilter = delta --color-only

[push]
    autoSetupRemote = true
    default = current
    followTags = true

[pull]
    default = current
    rebase = true

[rebase]
    autoStash = true
    missingCommitsCheck = warn
    autosquash = true

[merge]
    ff = false
    diffAlgorithm = histogram

[log]
    abbrevCommit = true
    graphColors = blue,yellow,cyan,magenta,green,red

[branch]
    sort = -committerdate

[tag]
    sort = -taggerdate

[color "diff"]
    meta = black bold
    frag = magenta
    context = white
    whitespace = yellow reverse
    old = red

[color "decorate"]
    HEAD = red
    branch = blue
    tag = yellow
    remoteBranch = magenta

[color "branch"]
    current = magenta
    local = default
    remote = yellow
    upstream = green
    plain = blue

[url "git@github.com:"]
    insteadOf = "gh:"

[url "git@gitlabs.com:"]
    insteadOf = "gl:"
[filter "lfs"]
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true
