M
M
moooV2015-06-30 18:21:36
git
moooV, 2015-06-30 18:21:36

Phpstorm after git checkout - how to commit only changed files?

There is such a problem - after switching to another branch via git checkout in the menu below (using native ide tools), phpstorm marks absolutely all files as modified, i. they all appear in the list if you make a commit directory - although their diff says that they are absolutely identical to the files from the last commit.

Those. the problem is reproduced in this way:
1) There is a directory with sources, they are pushed into the master branch.
2) We checkout another branch - the branch has switched.
3) Absolutely all files are marked in blue as changed.
4) If you immediately make a commit directory on the root directory, then absolutely all the files that are in the project will be in the commit list. If you click on any of them and look at the diff, it says that the files are identical. Those. there are no changes since the previous commit (obviously).

How to make phpstorm offer to commit only really changed files? As I understand it, now it looks stupidly at the modification date of files in the file system, but it changes when the branch changes.

By the way, the problem is also present without checkout, it just suggests committing fewer files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Freeman, 2015-06-30
@moooV

I don't have a third item. Just switches to another branch and in the usual (white) color. Are you sure you commit/push files before switching to another branch?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question