In the dialog that opens, specify the directory where a new Git repository will be created. You can choose Always Add to synchronize project settings with other repository users who work with PhpStorm.Īssociate different directories within the project with different Git repositoriesįrom the main menu, choose VCS | Create Git Repository. Open the project that you want to put under Git.Ĭhoose Enable Version Control Integration from the VCS Operations Popup Alt+` or from the main VCS menu.Ĭhoose Git as the version control system and click OK.Īfter VCS integration is enabled, PhpStorm will ask you whether you want to share project settings files via VCS. Associate the entire project with a single Git repository You can create a local Git repository based on an existing project sources.
Put an existing project under Git version control If your project contains submodules, they will also be cloned and automatically registered as project roots. Git root mapping will be automatically set to the project root directory. If you want to create a project based on the sources you have cloned, click Yes in the confirmation dialog. If you are already logged in to the selected hosting service, completion will suggest the list of available repositories that you can clone.Ĭlick Clone. In the Get from Version Control dialog, specify the URL of the remote repository you want to clone, or select one of the VCS hosting services on the left. PhpStorm allows you to check out (in Git terms clone) an existing repository and create a new project based on the data you've downloaded.įrom the main menu, select Git | Clone, or, if no project is currently opened, click Get from VCS on the Welcome screen. Check out a project from a remote host (clone)
If you need to manually configure PhpStorm to use Git from WSL, go to the Version Control | Git page of the IDE settings Ctrl+Alt+S, click the Browse icon in the Path to Git executable field and select Git from WSL via the \wsl$ path, for example, \\wsl$\debian\usr\bin\git. Also, PhpStorm automatically switches to Git from WSL for projects that are opened when you use the \\wsl$ path. If Git is not installed on Windows, PhpStorm searches for Git in WSL and uses it from there.
PhpStorm supports Git from the Windows Subsystem for Linux 2 (WSL2), which is available in Windows 10 version 2004. If the IDE can't locate a Git executable, it suggests downloading it. If you want to remove the existing passwords from the database, select Clear.ĭo not save, forget passwords after restart: select this option if you want your passwords to be reset after you close PhpStorm.When you clone an existing Git repository, or put an existing project under Git version control, PhpStorm automatically detects if Git is installed on your computer. To import a c.kdbx file, click and select Import from the drop-down menu, or click and specify the path to a local file containing your passwords. You can change the default location of the c.kdbx file in the Database field.
Enter the password that will be used to access the c.kdbx file in the MasterPassword field. Once PhpStorm remembers your passwords, it will not ask for them unless you need to access the passwords database. When you use the KeePass password manager, a master password will be used to access the file that stores individual passwords. In KeePass: select this option to use the KeePass password manager to store your passwords. This setting is only available for MacOS and Linux. In native Keychain: select this option to use native Keychain to store your passwords. Select how you want PhpStorm to process passwords for Git remote repositories: In the Settings/Preferences dialog Ctrl+Alt+S, select Appearance and Behavior | System Settings | Passwords on the left. You can configure PhpStorm to remember your passwords so that you do not have to specify your credentials each time authorization is required. Every time you interact with a remote Git repository (for example, during a pull, update, or push operation), it requires authorization.