gitlab 強制提交


之前在自己的電腦上強制提交了不少次。然后剛才發現之前部署的gitlab強制提交不了。

git push -f origin master

  

$ git push -f origin master
Total 0 (delta 0), reused 0 (delta 0)
remote: GitLab: You are not allowed to force push code to a protected branch on this project.
To http://119.23.72.7/sunlong_v5/note-library.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://119.23.72.7/sunlong_v5/note-library.git'

 

修改下gitlab的設置就好了。

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM