错两次了,记录一下
Enumerating objects: 298, done. Counting objects: 100% (298/298), done. Delta compression using up to 12 threads Compressing objects: 100% (275/275), done. Writing objects: 100% (298/298), 502.53 KiB | 2.16 MiB/s, done. Total 298 (delta 16), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (16/16), done. remote: begin commitlint… remote: ? input: PUSH项目 remote: ? subject may not be empty [subject-empty] remote: ? type may not be empty [type-empty] remote: remote: ? found 2 problems, 0 warnings remote: ? Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint remote: remote: GL-HOOK-ERR: 本项目开启了commitlint检查,您的提交不符合规范,具体规则可以查看:http://commitlint.js.org/ ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘’
解决方案如下
1.首先删除文件中的.git文件 2.git init 3.git add . 4.git commit -am “feat: 上传” 5.git push -u origin master 主要是commit快了,忘记使用commit规范:git commit -am "feat: ",feat后面后空格,要看清
|