简体   繁体   中英

Publish only certain git branches

I am developing an Index and we are using Git. Amont many reasons is to use the ticketing system...

  • I currently have a branch "pre-v1.0" with all pre 1.0 versions in folders. This is Public
  • I have another branch "1.0" with the released version, the official one. This is Public
  • I have another "current" onto which I fix the 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?

  • 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.

    The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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