Git问题总结

1、

 

 

解决方法:先执行git init
再执行git global config http.sslVerify false

 

2、

 

 

问题,权限问题,这个必须是owner角色,不能是developer

 

3、git.exe push --progress "origin" master:master
Enumerating objects: 24, done.
Counting objects: 100% (24/24), done.
Delta compression using up to 4 threads
Compressing objects: 100% (22/22), done.
Writing objects: 100% (22/22), 10.42 KiB | 1.74 MiB/s, done.
Total 22 (delta 3), reused 0 (delta 0)
remote: GitLab: You are not allowed to push code to protected branches on this project.
To https://gitlab.hytera.com/bpm-group/bpm.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://c34774:12345678@gitlab.hytera.com/bpm-group/bpm.git


git 未能顺利结束 (退出码 1) (2543 ms @ 2020/1/7 17:20:35)

 

解决办法:http://账号:密码@git.ops.test.com.cn/root/puppet.git

 

4、

 

 

设置用户名:git config user.name 用户名
设置邮箱: git config user.email 邮箱

posted @ 2020-05-20 09:21  xiaoXIAO天  阅读(423)  评论(0编辑  收藏  举报