[DevOps Note] Auto-switch between multiple git accounts based on the platform
Separate work git accounts from personal git accounts
In my case, my personal Git account usually goes through Github, while the code hosting platform at work is Bitbucket and uses a separate company account for the Git account. Switching authorization manually all the time is a hassle, but mixing accounts is not great either, so I looked into a way to handle this.