My .gitignore
contains dist
folder.
I have a file: dist/monorepo-docker-build-helper.js
which I need to track from now on (it's auto generated from a build-process).
.gitignore
file now:
dist
!dist/monorepo-docker-build-helper.js
When running git status
, dist/monorepo-docker-build-helper.js
is never listed, even after it was changed.
I looked at other answers: git add dist/monorepo-docker-build-helper.js -f
helps but when there is a new change, git status
doesn't show it.
What can I do to permanently add dist/monorepo-docker-build-helper.js
to git?