git update-index wants the file names on it's command line.
cd into the folder you want to assume is unchanged,
You can do either this:
git update-index --assume-unchanged $(git ls-files | tr '\n' ' ')or
git ls-files | tr '\n' ' ' | xargs git update-index --assume-unchangedAlthough, with either case, file names with spaces will be problematic. If you have those, you can use this:
git ls-files -z | xargs -0 git update-index --assume-unchangedEdit: incorporated input from @MatthewScharley regarding git ls-files -z.
via: https://stackoverflow.com/questions/12288212/git-update-index-assume-unchanged-on-directory