Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using git profiles by current directory

~/.gitconfig:

[includeIf "gitdir:~/workspace/project1/**"]
    path = .gitconfig.project1
[includeIf "gitdir:~/workspace/project2/**"]
    path = .gitconfig.project2

~/.gitconfig.project1:

[user]
    name = Roberto Zubizaretta
    email = helehele@heyheyyamar.com

~/.gitconfig.project2:

[user]
    name = Comolokko Tanburibaykushasan
    email = comolokko@tanburibaykushasan.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment