PhpStorm. Two GitHub projects handled with different GitHub accounts

I have 2 different GitHub projects and I want to handle them separately. Each project with different GitHub account but it seems impossible.

After get into Settings - Version Control - Github, there is only one place to put user and password (or token) and it seems is shared for all PhpStorm projects. If I change to the other project it keeps the settings and if after that I update the credentials after changing to the first project again the credentials I put lately are still set.

  • Github - I switched accounts and now I can't push because I have the wrong username
  • Github wrong username
  • Bitbucket different keys and accounts
  • GitHub username change (with noreply as email for commits)
  • How to safely change github account name?
  • Will changing my Github username to SnakeCase break anything?
  • Is possible to handle in the way I want?

  • gitflow, tags an versions numbers
  • GitHubs Process for Initial Commit
  • Is it possible to make .gitignore changed according to environment variables
  • Working in a git branch with submodules and commiting directly from that branch
  • Merge conflict with myself
  • The buildnumber-maven-plugin is returning UNKNOWN for the scmBranch
  • One Solution collect form web for “PhpStorm. Two GitHub projects handled with different GitHub accounts”

    You can work around the PHPStorm settings for git credentials at the git level if you update your repositories to reference their remotes via ssh rather than https.

    You can update local repositories to another remote with the git remote set-url command.

    Once you’ve switched to using ssh key authentication rather than https user/password auth, if you want to use multiple keys (one for each account) you can follow this guide which details how to configure git to use different private keys for different repositories.

    Git Baby is a git and github fan, let's start git clone.