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

问题描述

限时删除!!

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

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

我遇到了一个问题,user1 可以毫无问题地克隆存储库,而 user2 只能克隆一个空的存储库.我已经设置了 GIT_TRACE=1,但没有告诉任何有用的信息.

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 相关的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 02:23