DEV Community

Discussion on: Multiple gitconfig

Collapse
 
michaelcurrin profile image
Michael Currin • Edited

Thanks for sharing.

I am interested for this to use a different email for my work repos. Is there a way I can keep my settings my mine gitconfig (such as aliases) and just override the email portion in a second git config for work?

I linked back to your post in mine on git configs.

dev.to/michaelcurrin/dotfiles-git-...

Collapse
 
jma profile image
Jie

I think it only uses the settings in the gitconfig-work to override same one in the gitconfig, it is only the email and name by my example, so all your other settings like alias should still work as before

Collapse
 
michaelcurrin profile image
Michael Currin

Perfect, thanks