git提交代码报如下错误:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
POST git-receive-pack (470 bytes)
remote: Gogs: Branch 'master' is protected and commits must be merged through pull request
Pushing to http://xxxxxx/ArtidWeb
To http://xxxx/ArtidWeb
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://xxxxx/ECPT/ArtidWeb'
解决办法:对主干代码做了安全限制,进到网页版
仓库设置---》管理分支---》保护分支中去掉相应的项目