Insted of using .gitignore add files to .git/info/exclude
code .git/info/excludeIf you already have files that are changed you'll need to set them as unchanged
git update-index --assume-unchanged .gitmodulesInsted of using .gitignore add files to .git/info/exclude
code .git/info/excludeIf you already have files that are changed you'll need to set them as unchanged
git update-index --assume-unchanged .gitmodules