mirror of
https://github.com/ZJDoc/GitGuide.git
synced 2026-08-29 21:50:24 +08:00
docs(git): add advanced and error
This commit is contained in:
16
docs/platform/[GitLab]受保护分支.md
Normal file
16
docs/platform/[GitLab]受保护分支.md
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
# [GitLab]受保护分支
|
||||
|
||||
强制上传代码到`Gitlab`仓库的`dev`分支出错,提示如下:
|
||||
|
||||
```
|
||||
GitLab: You are not allowed to force push code to a protected branch on this project
|
||||
```
|
||||
|
||||
参考:[解决 GitLab: You are not allowed to force push code to a protected branch on this project问题](https://blog.csdn.net/mqdxiaoxiao/article/details/95794053)
|
||||
|
||||
是由于分支保护的原因,需要进入仓库`setting -> Repository -> Protected Branches`
|
||||
|
||||

|
||||
|
||||
允许`dev`分支能够强制推送
|
||||
Reference in New Issue
Block a user