git强制提交报错 [remote rejected] master -> master (pre-receive hook declined)

这是因为在gitlab仓库中加了保护,仓库拥有者需进入仓库、保护仓库、解除保护即可上传。

附上强制提交步骤

git reset commit号
git push --force

版权声明:本文为weixin_45355824原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。