I have a personal account and a work account on GitHub. Every time I switch from a personal project to a work project, RubyMine says that I don't have permission to this repository.
I go through the dance of logging in to the right account and push again. But then the same thing happens again the next time I switch projects.
How can I configure RubyMine (or IntelliJ/PyCharm/etc) to handle multiple accounts?
This has happened to me every couple of months for years now and my google-gu has always failed me. I finally figured it out and thought I'd share the good news with everyone.