简体   繁体   English

仅发布某些git分支

[英]Publish only certain git branches

I am developing an Index and we are using Git. 我正在开发索引,我们正在使用Git。 Amont many reasons is to use the ticketing system... Amont的许多原因是使用票务系统...

  • I currently have a branch "pre-v1.0" with all pre 1.0 versions in folders. 我目前在文件夹中有一个分支“ v1.0之前的版本”,其中包含所有1.0之前的版本。 This is Public 这是公开的
  • I have another branch "1.0" with the released version, the official one. 我还有一个发布版本的正式版“ 1.0”。 This is Public 这是公开的
  • I have another "current" onto which I fix the 1.0. 我有另一个固定的1.0版本。 This is Public 这是公开的
  • I want to have private "dev" branches where I can test ideas, but I need to share these with the other scientists, not with everyone. 我想拥有一个私人的“开发”分支,可以在这里测试想法,但是我需要与其他科学家而不是与所有人共享。

    Any idea? 任何想法?

  • The repo is under the Institute name. 回购以研究所名称命名。
  • I could fork into my account and share it with the other scientists... is that the only option? 我可以发表自己的看法并与其他科学家分享...这是唯一的选择吗? (I only have a personal free account in github) Will it also transer tickets and issues? (我在github中只有一个个人免费帐户)它还会转让票证和问题吗?

  • Just don't push the non-public branches into a public repository. 只是不要将非公共分支推入公共存储库。 For the others, that should have access to your private branches I recommend to create a second bare repository, to that only you and the others have access to, for example within your local network. 对于其他人,应该可以访问您的私有分支,我建议创建第二个裸仓库,以便只有您和其他人才能访问(例如在本地网络中)。 Another solution is, that they directly add your workcopy as remote repository. 另一个解决方案是,他们直接将您的工作副本添加为远程存储库。

    声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

     
    粤ICP备18138465号  © 2020-2024 STACKOOM.COM