keiohtani / dotfiles

MIT License
0 stars 0 forks source link

Multiple account for git #1

Closed keiohtani closed 4 years ago

keiohtani commented 4 years ago

You need to set up two things for this to work.

For gitconfig, you can either edit .git/config per repo or use the includeof operation in .gitconfig.

The example looks like

[user]
    name = testuser
    email = testuser@gmail.com

[includeIf "gitdir:~/work/"]
    path = ~/work/.gitconfig

Multiple github accounts on the same computer?