小编Wil*_*ong的帖子

为什么我的 git 总是强制推动?

似乎我的本地安装git(版本 2.10.2)是这样的,每当我发出时git push,它都会被解释为git push -f. 是否有一个配置变量我可能设置不正确导致这种行为?

更多背景

最近,我使用的服务器升级了他们的 GitLab 安装(运行社区版 8.14.2 b9442a5eb0,不幸的是,我没有简单的方法可以找出以前的版本是什么)。对于我拥有的每个项目(并拥有主许可),我得到

[Tue Dec 06 02:21 PM] ArchDesktop $ git push 
Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 765 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: GitLab: You are not allowed to force push code to a protected branch on this project.
To REDACTED …
Run Code Online (Sandbox Code Playgroud)

git gitlab

5
推荐指数
1
解决办法
1324
查看次数

标签 统计

git ×1

gitlab ×1