解释 :git.exe push --set-upstream --progress "origin" personal19067:main Enumerating objects: 9, done. Counting objects: 100% (9/9), done. Delta compression using up to 20 threads Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 541 bytes | 541.00 KiB/s, done. Total 5 (delta 3), reused 0 (delta 0), pack-reused 0 remote: GitLab: You are not allowed to push code to protected branches on this project. To https://gl.poissonsoft.com/yf22005/ps-visual-test-tool-pgme.git ! [remote rejected] personal19067 -> main (pre-receive hook declined) error: failed to push some refs to 'https://gl.poissonsoft.com/yf22005/ps-visual-test-tool-pgme.git'
时间: 2024-03-29 13:34:48 浏览: 154
Git(Git-2.27.0-64-bit.exe)和各版本下载地址
这条命令的含义是将本地分支 personal19067 推送到远程仓库 origin 的 main 分支,并将本地分支设置为 upstream。命令执行时,首先会枚举对象,然后计算对象数量,并使用多达 20 个线程进行增量压缩,最后写入对象。但是,该命令的执行结果表明,你没有权限将代码推送到受保护的分支上。远程仓库的 pre-receive hook 拒绝了该推送操作。你需要获得相应权限或联系仓库管理员以解决此问题。
阅读全文