W
W
WebDev2020-01-14 01:10:30
phpstorm
WebDev, 2020-01-14 01:10:30

How to add files to git in new PhpStorm?

After updating to version 2019.3, adding new files to git with ctrl+alt+a or menu VCS -> Git -> Add adds files to git by force (ignoring the .gitignore file). How now to just add new files to git without command line?
For example, on one of the projects, the compiled project is stored in the git. That is, the files generated by webpack. So after running npm run build, new files are created each time and they need to be added to the git. Previously, I selected the entire project and pressed ctrl+alt+a, but now this combination litters the commit.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-01-14
@kirill-93

I just checked in my PhpStorm2019.3, this does not happen.
Those. when you press ctrl+alt+a, a dialog appears:
and here you need to press cancel , then the files from .gitignore are not added.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question