! [remote rejected] master -> master (pre-receive hook declined)

今天在进行git push origin master的时候报了这个错误

大概率是你打开了master分支的保护

Open your project > Settings > Repository and go to "Protected branches", find "master" branch into the list and click "Unprotect" and try again.

解决措施就是,打开你的项目仓库,找到settings,respository,然后找到Protected branches,把master的状态改为Unprotect即可(不同的仓库可能位置不同,耐心找一下)

原文链接:gitlab - Git push error pre-receive hook declined - Stack Overflow

你可能感兴趣的:(git,git)