Skip to content

Instantly share code, notes, and snippets.

@scheibome
Created January 18, 2024 06:34
Show Gist options
  • Save scheibome/7db928e76e268ecd65b6787715e4d711 to your computer and use it in GitHub Desktop.
Save scheibome/7db928e76e268ecd65b6787715e4d711 to your computer and use it in GitHub Desktop.
git-user-split
# Deine Basis in der .gitconfig
[user]
name = Dein Name
email = deineprivate@email.com
# Die smarte Umschaltung in deiner globalen .gitconfig
[includeIf "gitdir:~/code/work/"]
path = ~/code/work/.gitconfig
# Dein berufliches Profil in der ~/code/work/.gitconfig
[user]
email = deineberufliche@email.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment