やりたいこと

SpringBootプロジェクトにVueCLIでVueのソースを管理するfrontendというディレクトリを作成し、これらもまとめてGitの管理対象にする

ディレクトリ構成

.
└── src
    ├── frontend ←このディレクトリ配下にVueのソースを格納している
    ├── main
    └── test

問題

frontendディレクトリ配下のソースたちがGitの管理対象として正しく認識されていない

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
  (commit or discard the untracked or modified content in submodules)
	modified:   src/frontend (modified content)

対処

今回作成した、リモートリポジトリとは別にフロントエンドのソース群を管理する別リポジトリを作成し、サブモジュールとして管理することにした。