TIL: About Conditional Gitconfigs
TIL you can have conditional sections in your .gitconfig As some of you may know, I keep my dotfiles in a git repo. The problem with this approach is that my email in my .gitconfig is set to [email protected]. Where my config looks something like this: [user] email = [email protected] name = Haseeb Majid # ... However, when I am at work I need to use a different email to commit i.e. work email [email protected] not my personal email. So I was wondering how could I do that; one way would be to change the file locally and just not commit it. But of course, that is not ideal. ...