GitLab/git 在推送事件时自动推送到另一个存储库(仅部分文件)

GitLab/git automate push to another repository on push event (only some files)

我有两个 GitLab 存储库,一个用于 Android 应用程序的源代码和其他资源,我们称其为主,另一个存储库仅用于翻译,我们称其为翻译,这也是 public存储库。翻译也包含在第一个存储库中,需要它们来构建应用程序。当推送到主存储库时,是否有可能自动 GitLab/git 将翻译文件从主存储库推送到翻译存储库?谢谢

最好的办法是使用不同的分支,其中包括用于各自远程的单独的 .gitignore。参见 this link for more information. Also if you want to allow only certain files you may have a look at this