Add Project Files to Git
Hi all,
When I upgraded to 2019.2 phpStorm asked me if I wanted to add my project files to git, at the time I was working in a branch so didn't want the checkin to be there, however now I'm back in the Master I want to check them in, does anyone now how to bring the prompt back?
I've checked my .gitignore and I've got the items below in it (I've masked some of them), I want as much as possible in it so if my PC crashes I can checkout and be on my way again, but I don't want to wipe the .gitignore and cause issues. I would also like the consoles and scratches checked in if possible.
I already put phpStorm settings in a separate Git Repo.
Thanks
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
# Editor-based HTTP Client requests
/httpRequests/
/codeStyles/codeStyleConfig.xml
/copyright/XXXX.xml
/copyright/profiles_settings.xml
/dictionaries/USERNAME.xml
/inspectionProfiles/Project_Default.xml
/runConfigurations/Runv3.xml
/scopes/XX_Module.xml
/.gitignore
/cake_config_setting_v0_6.xml
/codeStyleSettings.xml
/deployment.xml
/encodings.xml
/RUNv3_MainStream.iml
/modules.xml
/php.xml
/sqldialects.xml
/usage.statistics.xml
/vagrant.xml
/vcs.xml
/webServers.xml
# Datasource local storage ignored files
/dataSources.local.xml
请先登录再写评论。
If I got you right, you can just add them manually (VCS | Git | Add) from the Project Files view: https://recordit.co/KLuHdDkvqB
Does that do the same thing as the IDE prompt that's no longer there?
I'm concerned most of the files are in the .gitignore
In 2019.2 IDE prompts you to add files to "gitignore", not simply to Git.
> I want as much as possible in it so if my PC crashes I can checkout and be on my way again
I'm not sure if I'm following you on this. Could you please clearly note the end-result you would like to achieve?
Hi Dmitry,
I want to be in a position where I can recover all my project settings with a checkout from Git onto another machine.
Hope that makes sense.
Yes, since .gitignore only works for files outside of the staging area. Just try that, it should not be too time-consuming.