Git Alias

I use both GitHub and GitLab and their respective private email address features. This means, however, that I have two different commit email addresses that can't be set globally.

When creating a new repository, previously I would have to set manually, but something like is a bit hard to remember.

Using what I learned from Project specific git author, without the gas pains, I created an alias that will set the config setting to the appropriate value:

git config --global alias.github 'config ""'
git config --global alias.gitlab 'config ""'

Now when starting a new project that I plan to host on GitLab, for example, I can run the following commands to get things started:

git init
git gitlab