“Hiding” things in GIT

后端 未结 3 1671
臣服心动
臣服心动 2021-01-15 17:58

Git noob here.

I know this is against the principal of \"distributed source control\" but I want to \"password protect\" certain development branches in my GIT repos

3条回答
  •  情书的邮戳
    2021-01-15 18:20

    You can have a separate repository cloned from the public one with its own branches.

    This repository could be in the filesystem with the right ACLs or group permissions, or it could be a separate server requiring proper login credentials, etc. Then developers could commit, pull, merge, etc. as authorized.

提交回复
热议问题