For some reason, you need to manage two different GitHub accounts on your machine - e.g. personal and work.
After a thorough research online along with a test-and-learn approach, the following steps were successful for me.
- For the sake of this guide, both accounts are called
foobar
andwaldo
.