Skip to content

Instantly share code, notes, and snippets.

@Garllon
Last active September 3, 2019 16:07
Show Gist options
  • Save Garllon/b302de9cea5ad6ade81997a51c2252fd to your computer and use it in GitHub Desktop.
Save Garllon/b302de9cea5ad6ade81997a51c2252fd to your computer and use it in GitHub Desktop.
Setup git config emails for specific folder
[alias]
co = checkout
br = branch
ci = commit
st = status
[includeIf "gitdir:<path>"]
path = .gitconfig-work
[includeIf "gitdir:~/code/garllon/"]
path = .gitconfig-private
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[user]
name = Garllon
email = <private-email>
[user]
name = Garllon
email = <company-email>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment