HN 提问:你们如何处理带有私有构件的开源项目?
1 分•作者: mrsalty•3 个月前
您好,
我从事开源项目构建的时间不长,但目前我正在专注于一个项目,这个项目占用了我大量的时间,并且我希望能够长期维护它。
我遇到的问题是,我拥有开源部分(代码、公开文档等),但也存在一些私有资产(主要是私有文档、我的个人笔记、AI迭代等),这些我不想公开。同时,我也不想只将私有内容保存在本地,因为它们是宝贵的资产,可能会丢失,所以 `.gitignore` 并不是一个解决方案。
因此,我现在维护两个仓库,一个私有仓库和一个公共仓库。我先推送到私有仓库,然后通过一个脚本将(公共)资产复制到公共仓库中。但这带来了很大的额外开销,并且由于多种原因,这让我非常头疼。
您以前遇到过这种情况吗?有什么比较顺畅的解决方案吗?
祝好!
查看原文
Hi,
I don't have a long history as OSS builder but I'm now focusing on a project which is keeping me busy and I want to maintain it in the long term.<p>The problem I'm facing is that I have the OSS part (code, public docs, etc) but also some private assets (private docs primarily, my personal notes, AI iterations, etc) which I don't want to push publicly. At the same time I don't want to keep the private stuff local only as they are valuable assets and they might get lost, so gitignore is not a solution.<p>So I am now maintaining 2 repos, one private and one public, I push to private then with a script I copy over (public) assets into the public one. But this is a lot of overhead and it's giving me headaches for many reasons.<p>Have you ever faced this before? What could be a smooth solution?<p>Cheers