PhpStorm Git keeps saying: no changes detected

瘦欲@ 提交于 2019-12-03 05:36:49

Well, i know this post is to old but... i found a solution clicking on VCS | Refresh File Status, hope this help someone :)

I ended up going to the VCS menu and selecting something like "Enable Version Control Integration".

PHPStorm has a lot of these little stupid design failures, unfortunately.

Had the same problem recently, webstorm didn't detect changes and color of the file that I was changing turned to greenish. If VCS | Refresh File Status solves your problem temporarily, and after you make changes again, still you have the same problem, then check Preferences | Version Control | Ignored Files. In my case all files were ignored somehow, after removing it, it works properly.

See this declined bug in PHPStorm

You need to tell git to not ignore case and it will fix this behavior

git config --global core.ignorecase false

Before you can commit a new file to Git, you need to add the file. From the command-line, this is done with git add <file>. To add a file to Git in PhpStorm, go to the Project tool window, select the file to be added, and choose "Git | Add" from the context menu. Also, before you can push changes, you need to commit them. In PhpStorm, this is done like this:

  1. In the menu: "View | Tool Windows | Changes" (or Alt-9).
  2. Select whichever files you want to commit.
  3. In the main menu: "VCS | Git | Commit file" (or Ctrl-K).
  4. Add a comment.
  5. In the Git section, set the author using the drop-down list.
  6. Click "Commit".

Years later, same problem here. I admit I'm not yet an open source expert and come from an MS background, enthusiastic about broadening my horizons! But I know something is not right with the Git integration in this program.

Anyway, luckily recreating the project is incredibly easy. (I'm using PyCharm but it looks like a close copy of PHPSTorm) In doing so, I noticed that when I change the default path for the .Git repository, this problem happens.

When I keep the default path for the .Git files, things seem to work as intended.

If you're using pycharm. There's a big chance that you opened the file, you worked on it, but you opened it in a different project. Therefore no changes will be detected.

You need to open the file in its corresponding project in order to be detected.

I do this. All. The. Time.

I solved this problem. gitignore file was cause of problem. hope this help!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!