Skip to content

Instantly share code, notes, and snippets.

View as2-0's full-sized avatar

Andreas as2-0

  • Germany
View GitHub Profile
@as2-0
as2-0 / .gitconfig
Created May 16, 2026 23:04
Remote-dependent gitconfig
## git@github.com:namespace/** for config that only applies to repositories in the namespace "namespace"
[includeIf "hasconfig:remote.*.url:git@github.com:*/**"]
path = ~/.gitconfig-github
[includeIf "hasconfig:remote.*.url:git@gitlab.com:*/**"]
path = ~/.gitconfig-gitlab