WebStorm 2021.2 Help

Git

Set passwords for Git remotes为Git远程设备设置密码

Every time you interact with a remote Git repository (for example, during a pull, update, or push operation), it requires authorization. 每次与远程Git存储库交互时(例如,在更新操作期间),都需要授权。You can configure WebStorm to remember your passwords so that you do not have to specify your credentials each time authorization is required.您可以将WebStorm配置为记住密码,这样就不必在每次需要授权时都指定凭据。

Configure a password policy配置密码策略

  1. In the Settings/Preferences dialog Ctrl+Alt+S, select Appearance and Behavior | System Settings | Passwords on the left.“设置”/“首选项”对话框Ctrl+Alt+S中,在左侧选择“外观和行为”|“系统设置”|“密码”

  2. Select how you want WebStorm to process passwords for Git remote repositories:选择你希望WebStorm如何处理Git远程存储库的密码:

    • In native Keychain在本机密钥链中: select this option to use native Keychain to store your passwords. :选择此选项可使用本机密钥链存储密码。This setting is only available for MacOS and Linux.此设置仅适用于MacOS和Linux。

    • In KeePass: select this option to use the KeePass password manager to store your passwords. 在KeePass中:选择此选项可使用KeePass密码管理器存储密码。When you use the KeePass password manager, a master password will be used to access the file that stores individual passwords. 使用KeePass密码管理器时,将使用主密码访问存储单个密码的文件。Once WebStorm remembers your passwords, it will not ask for them unless you need to access the passwords database. 一旦WebStorm记住了您的密码,它将不会要求您输入密码,除非您需要访问密码数据库。Enter the password that will be used to access the c.kdbx file in the MasterPassword field.MasterPassword字段中输入用于访问c.kdbx文件的密码。

      You can change the default location of the c.kdbx file in the Database field.您可以在数据库字段中更改c.kdbx文件的默认位置。

      To import a c.kdbx file, click the Settings icon and select Import from the drop-down menu, or click the Browse button and specify the path to a local file containing your passwords.要导入c.kdbx文件,请单击the Settings icon并从下拉菜单中选择导入,或单击the Browse button并指定包含密码的本地文件的路径。

      If you want to remove the existing passwords from the database, select Clear.如果要从数据库中删除现有密码,请选择“清除”。

    • Do not save, forget passwords after restart: select this option if you want your passwords to be reset after you close WebStorm.不要保存,重新启动后忘记密码:如果您想在关闭WebStorm后重置密码,请选择此选项。

Last modified: 25 March 2021