New Project from Existing Remote and .git
I have files on a remote server, including a .git repo.
Normally I ssh into this server whenever I need to make changes, I also commit and push directly via ssh.
In phpstorm I have setup a new project from existing sources and downloaded the relevant files from the remote server, however I not ice that the .git folder wasn't downloaded? I'm unsure how I need to change my workflow now.
I was hoping to download the entire remote project (including .git folder), make changes within phpstorm, save these changes (with automatic upload to remote server). The I can ssh and commit / push.
Is this the wrong way? New to this program and workflow!
Thanks
Please sign in to leave a comment.
Hi there,
.git and alike folders are not meant to be deployed for security reasons (especially in production). Therefore they are automatically excluded.
You can change the deployment settings for the project and remove such exclusion:
Settings/Preferences | Build, Execution, Deployment | Deployment | Options | Exclude items by name
P.S. If you use "File | New Project Settings | Settings for New Projects..." and change the same field there then such new settings will be applied to new projects created on this computer created in the future.