

Associate the entire project with a single Git repository You can create a local Git repository based on the existing project sources. Put an existing project under Git version control In the Trust and Open Project ''? project security dialog, select the way you want to open the project: Trust Project or Preview in Safe Mode. 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. If no project is currently open, click Get from VCS on the Welcome screen. If the version control integration is not enabled yet, go to VCS | Get from Version Control.Īlternatively, go to File | New | Project from Version Control. If the version control integration is already enabled, go to Git | Clone. To start cloning a Git repository, do one of the following: 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. Check out a project from a remote host (git clone)

If you need to manually configure PhpStorm to use Git from WSL, go to the Version Control | Git page of the IDE settings Control+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.
#Ubuntun install phpstorm command line windows 10#
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. 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.
