Git Commit: "Nothing to commit"

Hi There,

I am running PHPStorm using 2017.3.6 on Mac OS High Sierra (10.13.3) with git version 2.16.2

When changing files I can see the IDE picking up the local file changes, but not the changes in the repository.
When I try to commit the IDE sais "no changes detected".

If I open 'Version Control / Local Changes' and then click on 'Refresh' the changes do get picked up.


What can I do so it refreshes automatically on each file change?

Regards,

Bart

1
8 comments

but not the changes in the repository.

Please clarify what this means. Why do you expect to see the repository changes reflected in the local FS?

If I open 'Version Control / Local Changes' and then click on 'Refresh' the changes do get picked up.

This makes me think that the local files are being changed by an external tool. When it happens next time, please check if File | Synchronize helps.

0

I see I wrote something different then I meant with 'but not the changes in the repository' 
I meant that you'd normally see that you've made changes you can check in / commit. However I can see the local changes made to the file when not saved. But not the changes I can check in.

Then files are not changed by an external tool, I make these changes in PHP storm.
When using the same version on windows I do not have this problem. The settings seem to be the same.

Using File / Synchronize does not help.

Somehow the Version Control does not pick up changes unless I click on Refresh, this used to go automatically.

0
Avatar
Permanently deleted user

What does `git status` show when PhpStorm doesn't pick up the changes?

Does it depict changed files properly?

0

Well I tried several things:

- When some new files where added (niet in IDE but on the directory) I can't right click and do git add, as git add is deactivated.
- I am able to run git add to the directory where these files are in, but it doesn't change anything. Running git status shows the files where not added.

- When changing a document in the IDE it does not show the change (by colour) in the IDE, but running git status does show these files where changed.

 

 

0

Please check these:

  1. Your .gitignore file if it exists
  2. Settings | Version Control | Ignore files

Anything unusual there?

0

Nothing weird in the gitignore.
I have this issue with several projects.

0
Avatar
Permanently deleted user

I'm experiencing the same issue. Not seeing any help on the help pages, documentation or forums. Weird since it's been years since the first person mentioned this sort of issue on the website. 

0
Avatar
Permanently deleted user

@Akulakow Does Git work fine via CLI? Files are not ignored via .gitignore?

What about Settings | Version Control | Ignored Files?

0

Please sign in to leave a comment.