I have a GIT
repository where there is a dist
folder which is required for some build/deploy job. On my local there is a chance of content change in that dist
folder due to grunt build or something. But I don't want to commit those changes, so I want all the changes to be ignored/untracked in that directory (dist
).
I have found this article and tried git rm -r --cached <your directory>
. But when I do git status
after the above command it shows all the files have been deleted and dist
folder has been untracked. So, if I commit this, then all the files will be deleted from central GIT repo also and I don't want that. I want GITHUB's dist folder to be untouched. Is there anything by which I can achieve this?
Upadte 1:
I have tried including in the .git/info/exclude
file but still it did not work.
I have changed a file inside dist
but still it's showing in git status