相关疑难解决方法(0)

如何调试git/git-shell相关问题?

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

我有一个问题,user1可以克隆存储库没有问题,而user2只能克隆一个空的.我设定了GIT_TRACE=1,但没有任何有用的东西被告知.

最后,经过长时间的反复试验,结果证明这是文件的权限问题.适当的错误消息可能会使此问题短路.

git debugging trace

130
推荐指数
7
解决办法
9万
查看次数

git clone有效,但在更换防火墙后面的SSL证书后不会推送

克隆我的回购工作; 推回去没有.

第一次克隆不起作用:

git clone https://github.com/slimsnerdy/testy.git
Cloning into 'testy'...
fatal: unable to access 'https://github.com/slimsnerdy/testy.git/': SSL certificate problem: self signed certificate in
certificate chain
Run Code Online (Sandbox Code Playgroud)

所以我在.gitconfig文件中添加了以下自定义证书:

[http]
    sslCAInfo = U:/ca-bundle.crt
Run Code Online (Sandbox Code Playgroud)

现在克隆工作:

Cloning into 'testy'...
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 25 (delta 8), reused 6 (delta 1), pack-reused 0
Unpacking objects: 100% (25/25), done.
Run Code Online (Sandbox Code Playgroud)

好了现在推动:

new-item test.txt
git add *
git commit -m "push test"
git push
Username for 'https://github.com': slimsnerdy
Password for …
Run Code Online (Sandbox Code Playgroud)

git github

12
推荐指数
2
解决办法
618
查看次数

标签 统计

git ×2

debugging ×1

github ×1

trace ×1