将文件从一个 git 存储库加载到另一个 git 存储库?
场景是我们有一个应用程序存储库供开发人员使用,还有一个包含一些配置文件的配置存储库供维护人员使用。
目前,我们只需复制/粘贴文件并设置 gitignore,因为我们不想将其作为主分支的一部分进行跟踪。
只是想知道是否有更聪明的方法来处理这个问题(除了将所有内容都放在同一个存储库中之外)。我确实考虑过链接该文件,但是当我们部署/构建服务器时,这会出现问题。另一个选项是添加构建步骤以自动获取文件。
我确信有比我上面提到的任何事情更好的方法,但不确定它可能是什么。谷歌-fu 让我失望了。
Scenario is we have an application repository for the devs to use, and a configuration repo with some config files for maintainers to use.
At the moment, we just copy/paste the file in and set up a gitignore because we don't want to track it as part of the main branch.
Just want to know if there's a smarter way of handling this (aside from having it all in the same repo). I did consider linking the file, but that would have issues when we come to deployment/build server. The other option was adding a build step to fetch the file automatically.
I'm sure there's a better way of doing it than any of the things I've mentioned above, but not sure what it might be. And google-fu is failing me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论