C
C
coderisimo2021-01-15 20:43:36
phpstorm
coderisimo, 2021-01-15 20:43:36

PhpStorm, when creating a new project from the finished code, marks all files as modified. How to get rid?

I am creating a new project. I specify the directory in which there are already files and repa git (via samba on the virtual machine). When trying to make a git commit, storm suggests committing ALL files 500 files! Also, all these files are displayed in the Default Changelist as changed. At the same time, when I open the diff of any, "no differences" are visible. That is, they are not actually changed.
Is there a magic check somewhere that cures this?
If I run git status in the console of the storm, it writes Changes not staged for commit:... and shows all files as changed, if I run the same in the console on a virtual machine, it says everything is ok, no one has changed any files.
What the..... ?!

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
coderisimo, 2021-01-16
@coderisimo

When a file's permissions change, GIT may assume that the file has changed even though its contents remain the same. To eliminate this phenomenon, you can change the config setting. For example, like this:
git config core.filemode false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question