Skip to content

Instantly share code, notes, and snippets.

@alexpts
Created April 23, 2023 17:37
Show Gist options
  • Save alexpts/adb9170353445908949465fe74359d39 to your computer and use it in GitHub Desktop.
Save alexpts/adb9170353445908949465fe74359d39 to your computer and use it in GitHub Desktop.
GitConfig Glob Mask
# Базовый ~/.gitconfig, для суб директорий можно подключить свои конфиги, например для личных и рабочик проектов
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
# extend and overwrite config for glob path
[includeIf "gitdir:~/www/**/*"]
path = ~/www/.gitconfig
[includeIf "gitdir:~/www/alex/**/*"]
path = ~/www/alex/.gitconfig
[init]
defaultBranch = master
[core]
autocrlf = input
@alexpts
Copy link
Author

alexpts commented Apr 23, 2023

[user]
    name = xxx
    email = [email protected]

    signingkey = xxx


[commit]
    gpgsign = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment