Troubleshooting intellij github problem with different account when push to remote origin:
1.intelliJ: invalidated cache and restart.
2.delete credential, git config credential.helper
3. Generete new personal access token in Github
4. check github setting , set default account for the project

Delete project in intelliJ:
1. reveal in finder
2. delete folder (root)
3. check hidden git folder , config folder