Skip to content

Instantly share code, notes, and snippets.

@jeffhung
Created October 7, 2019 10:18
Show Gist options
  • Save jeffhung/307641b90e1b0561c3bf11a8f4fd91c5 to your computer and use it in GitHub Desktop.
Save jeffhung/307641b90e1b0561c3bf11a8f4fd91c5 to your computer and use it in GitHub Desktop.
Customize Git Configurations by Folders
# See: https://git-scm.com/docs/git-config#_conditional_includes
[includeIf "gitdir:~/company/works/"]
path = ~/company/works/gitconfig
[includeIf "gitdir:~/personal/works/"]
path = ~/personal/works/gitconfig
[user]
name = Your Name
email = [email protected]
[github]
user = your-username
token = your-github-token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment