How to change Git remote credentials in IntelliJ IDEA 14
Codemia Knowledge Hub ·
To change the credentials IntelliJ IDEA 14 uses for a remote repository, clear the saved password under Appearance & Behavior > System Settings > Passwords, update the remote URL if it changed, or switch the remote to SSH authentication. You might need this after a password update, a new security policy or a move to a different account.
Before you start
- IntelliJ IDEA 14 is installed.
- You have the new remote repository credentials.
- You are online, since some steps talk to the remote repository.
Steps to change the credentials
Step 1: open the project
Launch IntelliJ IDEA 14 and open the project linked to the remote repository whose credentials you need to update.
Step 2: open the version control settings
- Go to File > Settings (or IntelliJ IDEA > Preferences on macOS).
- Navigate to Version Control > Git.
Step 3: update the repository URL
If your credentials changed because of a new URL or SSH key, update the repository URL:
Step 4: clear the saved credentials
- Go to File > Settings.
- Open Appearance & Behavior > System Settings > Passwords.
- You may see options such as In native Keychain or Do not save. Select Do not save temporarily to clear cached credentials.
Step 5: review the remotes
In the Git settings, click Manage Remotes to see the list of remotes. You can add, edit or remove entries there.
Switching to SSH authentication
SSH is often considered more secure than HTTP. To use it, set up your keys:
- Generate a new SSH key if needed:
- Add the key to your SSH agent:
- Add the public key to your account settings on the remote repository host.
Then, in IntelliJ IDEA, go to File > Settings > Version Control > Git and pick the SSH client (native or built-in) under SSH executable.
If the connection still fails
- Check that the repository URL is correct and reachable.
- Double-check your username and password.
- If you use SSH, make sure the key is added to the SSH agent.
- Look for error messages in IntelliJ IDEA's event log.
| Step | Description |
| Access Settings | Go to File > Settings > Version Control |
| Change URL | Use git remote set-url for URL modifications |
| Clear Credentials | Access Passwords under System Settings |
| SSH Setup | Generate and add SSH key for secure access |
| Troubleshooting | Check validity of URL, credentials, and SSH keys |
Related reading
- Changing number of backup from x to y in ignite cluster
- Changing the auto-generated kops kubernetes admin password
- Client network socket disconnected before secure TLS connection was established. How can I connect to a kafka cluster using Kafka JS in Node js?
- Cloud SQL Proxy and Insufficient Permission
- Changing an existing submodule's branch
- Changing git commit message after push given that no one pulled from remote
- CloudFront distribution and AWS issued certificate gives SSL_ERROR_NO_CYPHER_OVERLAP
- Cloudfront serving over own SSL certificate

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseSystem Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.