TLDR; I just want to keep .css files hidden but updated whenever I commit .less files.
I want to hide a bunch of .css
files on smartgit, because they are generated from .less
files. Most would suggest .gitignore
, but I still need them tracked (for deployment reasons). Lessc
is run by IDE.
I also tried assume-unchanged, but then they are just not committed in.
I also tried pre-commit hook, to automatically add these .css
files, but they are left visible as staged wt as head
My last try in pre-commit was
touch
--no-assume-unchanged
add
--assume-unchanged
but while the .css is committed and finally pushed, Smartgit ends up showing them as staged unchanged (assumed but modified)
(or something like that).