Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to switch to the other git account in Intellij Idea [duplicate]

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?

like image 610
Bensson Avatar asked Mar 18 '16 13:03

Bensson


People also ask

How do I switch branches in IntelliJ Git?

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.

How do I change my repository in IntelliJ?

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.


1 Answers

You'll need to completely change the Github account credentials for IntelliJ.

  1. Go into your Settings with Ctrl+Alt+S.
  2. Go to Version Control > Github
  3. Edit your credentials.

As you noted in the comments to your question, you need to change the Author Name as well.

like image 60
Harmelodic Avatar answered Oct 25 '22 15:10

Harmelodic