Handling Passwords for Git Remote Repositories
On this page:
- Basics
- Configuring the password policy
- Setting the master password
- Changing the master password
- Resetting the master password
Basics
Every time you interact with a remote Git repository, for example, duringPull,
Update, or
Push
operations,
you are requested to specify the private
ssh
key or passphrase to identify yourself. You may happen to use a number of remote repositories
and accordingly need to remember a number of passwords.
PhpStorm provides the ability to configure a password policy according to which passwords are either never saved, or saved during one session and cleared upon the session end, or stored in a special passwords database.
The passwords database is under protection of amaster password. Oncespecified, the master password can be changed or reset at any time. PhpStorm stores the history of all updates to the master password until it is reset.
Configuring the password policy
To configure the password policy
- Open the IDE Settings, then clickPasswords.
- On the
Passwords
page that opens, specify how you want PhpStorm to process passwords for Git remote repositories.
Do one fo the following:
- If you do not need PhpStorm to save passwords at all, select the Do not remember passwords option.
- To have passwords stored in the memory during a session, select the Remember passwords until closing of the application option.
- To have passwords stored in a passwords database, select the Remember on disk (protected with master password) option and specify the master password for the storage.
Setting the master password
To set the master password
- On the Passwords page of the Settings dialog box, select the Remember on disk (protected with master password) option.
- Click the Reset button.
- In the Master Password dialog box that opens, specify the password to use. Type the desired password once again to confirm your setting.
Changing the master password
To change the master password
- On the Passwords page of the Settings dialog box, click the Change Password button.
- In the Change Master Password dialog box that opens, type the currently used master password and the password to change it to. Confirm the new password by typing it once again.
Resetting the master password
To reset the master password
-
Open the
Reset Master Password
dialog box. Do one of the following:
- On the Passwords page of the Settings dialog box, click the Reset Master Password button.
- In the Change Master Password dialog box, click the Reset Password button.
- In the New Password text box, type the master password to replace the current one with.
- In the Confirm Password text box, type the new master password once again to confirm your setting.