我该如何调试git / git-shell相关的问题? [英] How can I debug git/git-shell related problems?

查看:188
本文介绍了我该如何调试git / git-shell相关的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得关于git / git-shell的调试信息?



我遇到了一个问题, user1 可以克隆一个存储库而没有问题,而 user2 只能克隆一个空的。我已经设置了 GIT_TRACE = 1 ,但没有任何用处。

最后,经过长时间的反复试验,事实证明,这是一个文件的权限问题。一个合适的错误信息可能会将这个问题缩短。

解决方案


$ b

GIT_CURL_VERBOSE = 1 GIT_TRACE = 1 git pull原点大师


How can I have some debug information regarding git/git-shell?

I had a problem, that user1 could clone a repository without problem, while user2 could clone only an empty one. I had set GIT_TRACE=1, but nothing useful was told.

Finally, after a long trial and error, it turned out that it was a permission problem on a file. An appropriate error message could short-circuit this problem.

解决方案

For even more verbose output use following:

GIT_CURL_VERBOSE=1 GIT_TRACE=1 git pull origin master

这篇关于我该如何调试git / git-shell相关的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆