Different accounts being used when committing to GitHub
已回答
I recently switched my GitHub account associated with IntelliJ to my main one (this one) and deleted the old GitHub account from options.
Whenever I "Share Project on GitHub", the project is uploaded to kanishknishar's GitHub however when I commit changes, it is shown as changes being made by my alt account. I can't see my alt account in the settings so I don't know how to make IntelliJ always use only my main account whenever I use GitHub
请先登录再写评论。
If your commits are linked to another user, that means the email address in your local Git configuration settings is connected to that user's account on GitHub. In this case, you can change the email in your local Git configuration settings and add the new email address to your account on GitHub.com account to link future commits to your account.
To change the email address in your local Git configuration, follow the steps in "Setting your commit email address". If you work on multiple machines, you will need to change this setting on each one.
Add the email address from step 2 to your account settings by following the steps in "Adding an email address to your GitHub account". My Pasco Connect
Thanks for the help.