Change GIT login/username in IntelliJ IDEA, WebStorm, RubyMine etc

16,942

GIT record login-name in remote repository URL. You can change that in IntelliJ product in couple of ways.

Quick way 2021

  • Double-click SHIFT (i.e. SHIFT SHIFT)
  • Search-everywhere opens up
  • Start typing Manage Remotes...
  • Proceed as described below in quick way

Quick way

  • Type CTRL + SHIFT + A to open Enter action or option name dialog Enter action or option name dialog filtering "remotes..."
  • Type Remotes... to filter the list as in image
  • Select Remotes... for Git (first selection on image) and following dialog is openede enter image description here
  • In Git Remotes dialog, use pencil icon to open Define Remote dialog enter image description here
  • Press OK to confirm
  • Re-enter your password and optionally have IntelliJ store it.

Point and Click way

  • Select VCS menu
  • Hover on Git menu item
  • Select from sub-menu Remotes...
  • Continue as described above

Terminal way

  • Open Terminal in your IntelliJ tool ALT + F12
  • Enter command git ls-remotes --get-url to see your current remotes
  • Enter command with modified username git remotes set-url https://[email protected]/path/to/project.git
Share:
16,942
Lauri
Author by

Lauri

Updated on June 14, 2022

Comments

  • Lauri
    Lauri almost 2 years

    Authentication login/username for my GIT account changed. How do I tell this to my IntelliJ product?