.gitignore and .git/info/exclude only cover untracked files. Run git update-index --skip-worktree to keep local edits to a tracked file out of git status.
During the build process on Vercel, it is not possible to retrieve submodules that are in a private repository. It is necessary to use a fine-grained personal access token to retrieve them via HTTP.