码迷,mamicode.com
首页 > 其他好文 > 详细

git修复push文件

时间:2016-12-11 03:07:16      阅读:378      评论:0      收藏:0      [点我收藏+]

标签:art   this   exe   writing   director   use   images   egit   ranch   

1 环境

2 错误

3 解决

4 参考

环境

技术分享

错误

TortoiseGit 客户端 push时报

git.exe push --progress "origin" master:master

error: cannot spawn sh: No such file or directory
error: cannot spawn sh: No such file or directory
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 416 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: GitLab: You are not allowed to force push code to a protected branch on this project.
To http://192.168.80.130:10080/root/demo.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘http://192.168.80.130:10080/root/demo.git‘


git did not exit cleanly (exit code 1) (15709 ms @ 2016-12-11 00:20:09)

解决

技术分享

点Unprotected,取消保护。

参考

http://blog.csdn.net/hwz2311245/article/details/50599759

git修复push文件

标签:art   this   exe   writing   director   use   images   egit   ranch   

原文地址:http://www.cnblogs.com/mongolhu/p/6158814.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!