project到GitLab上,但是试了很多次都上传不上去,报错如下:
! [remote rejected] master -> master (pre-receive hook declined) error: 无法推送一些引用到 ‘http: xxxxxxx.git‘
(1)新建分支
git branch 分支名
(2)切换分支
git checkout 分支名
【备注】也可以使用下面的指令直接代码上面二个步骤
git checkout -b 分支名
(3)进行项目上传
git add . //将所有有改动的全部添加到要提交的本地库中 git commit -m "提交的信息" git remote add origin 远程仓库地址 git push -u origin 分支名
git push解决办法: ! [remote rejected] master -> master (pre-receive hook declined)
原文:https://www.cnblogs.com/libra13179/p/12565938.html