For a public repo with private assets, what are the differences between clone, submodule, and subtree?

Background:

A small team and I are putting together a project in Main-Repo. We want Main-Repo to be opensource eventually. However, Main-Repo needs to use assets that we don’t want to be opensource. We are currently keeping those assets in Assets-Repo. All of the collaborators on Main-Repo have access to Assets-Repo

Problem

We don’t know the best way to embed the Assets-Repo within the file structure of Main-Repo. We anticipate that the file structure of Main-Repo will look something like this:

Main-Repo
|_.gitignore
|_ main.file
|_...
|_Assets-Repo
  |_privateImage.png
  |_privateAudio.mp3
  |_...

Git Clone + .gitignore

This was our initial idea–we clone Assets-Repo into Main-Repo locally and add the Assets-Repo folder to our .gitignore to keep it out of Main-Repo‘s source control.
This would mean that we’d have to periodically cd into Assets-Repo to make or pull changes`, but doesn’t seem like too much overhead. In addition, it should keep all of our information separate and private.

However, when I went to commit the change that cloned Asset-Repo into Main-Repo, I got this warning:

You've added another git repository inside your current repository. Clones of the outer repository will not contain the contents of the embedded repository and will not know how to obtain it.
If you meant to add a submodule, use:
git submodule add <url> Assets-Repo

If you added this path by mistake, you can remove it from the
index with:

git rm --cached Assets-Repo

See "git help submodule" for more information.

Submodule Solution

My understanding is that submodules are made with third-party modules in mind. In addition, our Main-Repo would not be able to function without having access to Assets-Repo. I read that while it can be used to keep private repos separate while letting users clone the parent repo, it adds a ton of overhead. Is there a meaningful difference between submoduling a private repo vs .gitignoring it from the parent repo?

Subtree Solution

My understanding is that if Assets-Repo was a subtree of Main-Repo, it will get a snapshot of Assets-Repo. I’ve seen mention that it’s hard to keep the subtree up-to-date, which won’t work, as we’ll be adding to Assets-Repo as we work in Main-Repo.

Question

For a private repo within a public repo, both of which are controlled by the same collaborators, what are the pros and cons of embedding the private repo via clone + .gitignore, submodule, and subtree? What is the flow for contributing to either repo?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật