I use Intellij Idea 15. I commit code to github with account A before, And I want use account B commit code to github now. How to switch to the other account?
In the Branches popup, choose New Branch or right-click the current branch in the Branches pane of the Git tool window and choose New Branch from 'branch name'. In the dialog that opens, specify the branch name, and make sure the Checkout branch option is selected if you want to switch to that branch.
From the main menu, choose Git | Manage Remotes. The Git Remotes dialog will open. button on the toolbar or press Alt+Insert . In the dialog that opens, specify the remote name and URL and click OK.
You'll need to completely change the Github account credentials for IntelliJ.
Version Control > Github
As you noted in the comments to your question, you need to change the Author Name as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With