Is there a way to add to gitignore on the fly?
Is there a way开发者_高级运维 to do this, for example?
git ignore file1, file2, file3
You could create a small bash script which would:
- shift for each parameter
until [ -z "$1" ] ; do local aparam="$1" ; ... ; shift ; done
- call for each one:
git update-index --assume-unchanged $aparam
And then define that script as an alias.
精彩评论