I'm having trouble with the phenomenon that git keeps showing differences

Question: Question:

I am suffering from the phenomenon that the difference keeps appearing in git. When I git status, the following message appears, so I will try to deal with it, but …

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   app/hoge.php
    modified:   app/fuga.css

no changes added to commit (use "git add" and/or "git commit -a")

Even if you stash , commit , or reset , the difference will continue to appear. Even if I try to operate it with GUI such as SourceTree or GitHub application, it keeps appearing.

Have you encountered a similar phenomenon?

If anyone knows the solution, I would appreciate it if you could tell me.

Answer: Answer:

git add app/hoge.php
git add app/fuga.css
git commit -m "<your commit message>"

Wouldn't it be solved?

Scroll to Top