8

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?

Bensson
  • 4,509
  • 4
  • 19
  • 24
  • Multiple Github account management for a single project will require you to perform `git` commands via command line/terminal. IntelliJ doesn't support multiple Github accounts for 1 instance of IntelliJ. If you want to do it through IntelliJ, you'll need to completely change to a different account in `Settings > Version Control > Github` – Harmelodic Mar 18 '16 at 13:44
  • 1
    No, This issue related to Intellij idea, Actually I done some change in command line. Intellij idea still use the old account. – Bensson Mar 18 '16 at 13:50
  • 1
    As I said, IntelliJ doesn't support multiple account management, you'll have to login to a different account through `Settings > Version Control > Github` to change to a different Github account. I was implying that you perform your `git commit`s and `git push`es via command line whilst managing multiple accounts on the same computer. – Harmelodic Mar 18 '16 at 13:52

1 Answers1

11

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.

Harmelodic
  • 5,682
  • 1
  • 28
  • 31