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
- Type Remotes... to filter the list as in image
- Select Remotes... for Git (first selection on image) and following dialog is openede
- In Git Remotes dialog, use pencil icon to open Define Remote dialog
- 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
Author by
Lauri
Updated on June 14, 2022Comments
-
Lauri almost 2 years
Authentication login/username for my GIT account changed. How do I tell this to my IntelliJ product?