首页 > 其他 > 详细

Git相关错误总结

时间:2015-08-28 13:14:05      阅读:164      评论:0      收藏:0      [点我收藏+]

http://blog.csdn.net/pipisorry/article/details/46958699

git中输入ls命令中文乱码问题

在 Git Bash 中输入 ls 命令,为了正常显示中文文件名,只需要在git安装目录下的文件etc\git-completion.bash中添加一行

alias ls=‘ls --show-control-chars --color=auto‘


git push 时报错 warning: push.default is unset

‘matching‘参数是 Git 1.x 的默认行为,其意是如果你执行 git push 但没有指定分支,它将 push 所有你本地的分支到远程仓库中对应匹配的分支。而 Git 2.x 默认的是 simple,意味着执行 git push 没有指定分支时,只有当前分支会被 push 到你使用 git pull 获取的代码。

根据提示,修改git push的行为:git config --global push.default matching。再次执行git push 得到解决。

皮皮Blog


错误"pathspec ‘branch‘ did not match any file(s) known to git."

git checkout master
git pull
git checkout new_branch


git提交比较大的文件的时候出现错误
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
这样的话首先改一下git的传输字节限制
git config http.postBuffer 524288000


然后这时候在传输或许会出现另一个错误
error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
这两个错误看上去相似,一个是411,一个是413
下面这个错误添加一下密钥就可以了
首先key-keygen 生成密钥,然后把生成的密钥复制到git中自己的账号下的相应位置

git push ssh://192.168.64.250/eccp.git branch

from:http://blog.csdn.net/pipisorry/article/details/46958699

ref:解决git中文乱码问题


版权声明:本文为博主http://blog.csdn.net/pipisorry原创文章,未经博主允许不得转载。

Git相关错误总结

原文:http://blog.csdn.net/pipisorry/article/details/48050377

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!