After a long walk on the internet, I found out that you can achieve what you want by writing directly in the git index and create the “gitlink” file type.
git update-index [--add] --cacheinfo 160000
Also do not forget to write the subrepo in .gitmodules (declare the external path, mostly).