I have a Github workflow that runs and does the following steps
- Checkout the branch
- runs
npm install && gulp compile-assets
- Then runs
git status --porcelain
to see if there are any differences. The expectation here is to have no changes since all changes done bynpm install && gulp compile-assets
locally should have been committed.
However, the git status --porcelain
seems to always returns difference. When I apply `git diff committed-file generated-file
I see there is no change at all. The diff shows @@ -1,21 +1,21 @@
and nothing was changed. But the diff shows that all the lines were removed and added “but the outcome is identical”
I tried adding git config core.autocrlf false && git config core.filemode true
before git status --porcelain
but did not change the outcome.
What could be causing git status --porcelain
to show file difference without any true change?