[user]
    email = fanyx@posteo.net
    name = fanyx

[includeIf "gitdir:~/b1/"]
    path = ~/b1/.config/git/config

[includeIf "gitdir:~/b1/customer/sap/"]
    path = ~/b1/customer/sap/.config/git/config

[alias]
    # branches
    branches = branch -a
    sb = switch
    sc = switch -c

    # commits
    cm = commit -m
    fixup = "!git log -n50 --pretty='format:%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
    ri = "rebase -i"

    # push
    pushf = "push --force-with-lease"

    # log
    l = log --pretty='format:%h %G? %s%d' -n20 --graph --color
    fzs = "!git log -n50 --pretty='format:%h %s' --no-merges | fzf | cut -c -7 | xargs -o git show"

    # status
    s = status -sb
    ss = s -uno

    # other
    tags = tag -l
    remotes = remote -v

[color]
    diff = auto

[column]
    ui = auto

[init]
    defaultBranch = main

[branch]
    sort = -committerdate

[rebase]
    autosquash = true

[credential]
    helper = store
[core]
	editor = vim
