限制用户对特定git分支回购和历史回购的访问,同时保留合并设施
以下是我的背景:限制用户对特定git分支回购和历史回购的访问,同时保留合并设施,git,repository,bitbucket,branch,restriction,Git,Repository,Bitbucket,Branch,Restriction,以下是我的背景: 我有一个有20个版本的软件,每个版本代表(相同)我的git repo中的一个分支 我有两个团队,一个本地团队和一个远程团队 以下是我的限制: 本地团队可以完全访问回购协议 远程团队有权访问第15版(第15分支机构) 远程团队在第15分支机构之前无法访问历史记录 远程团队无法访问本地tema工作 远程团队只有他们自己的工作 这是一个前提: 如果本地团队能够从远程团队代码中合并,并且冲突和痛苦最小,那将是非常棒的 我试过什么 第1 我从回购协议中创建了一个叉子,我保证大师只有
C:\old_repo>git push --mirror https://carlotto_totem@bitbucket.org/new_repo.git
Password for 'https://carlotto_totem@bitbucket.org':
Counting objects: 131, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (95/95), done.
Writing objects: 100% (131/131), 9.72 MiB | 238.00 KiB/s, done.
Total 131 (delta 28), reused 131 (delta 28)
To https://carlotto_totem@bitbucket.org/new_repo.git
! [remote rejected] release/v15 -> release/v15 (shallow update not allowed)
error: failed to push some refs to 'https://carlotto_totem@bitbucket.org/new_repo.git'
我该怎么办
不允许浅更新
做一个浅层的克隆,这样你只有回到第15版。然后将其推送到一个新的裸存储库。仅允许远程团队访问该新存储库。本地团队应该能够将其作为第二个远程设备,并从远程设备合并到本地设备。进行浅层克隆,以便在第15个版本之前您只能返回。然后将其推送到一个新的裸存储库。仅允许远程团队访问该新存储库。本地团队应该能够将其作为第二个远程服务器,并从远程服务器合并到本地服务器