如果我使用GIT_TRACE=2环境变量运行"git push",我会得到以下输出:
09:25:28.098743 git.c:349 trace: built-in: git 'push' 'origin' 'master'
09:25:28.100261 run-command.c:341 trace: run_command: 'ssh' 'git@bitbucket.org' 'git-receive-pack '\''kevinburke/letter.git'\'''
这很棒,但有时我会遇到以下错误:
fatal: Could not read from remote repository.
我只偶尔能明白,所以我不确定发生了什么。我知道ssh有一个详细模式:
-v Verbose mode. Causes ssh to print debugging messages about its progress.
This is helpful in debugging connection, authentication, and configuration
problems. Multiple -v options increase the verbosity. The maximum is 3.
如果我能让git
使用-vvv
参数运行该ssh命令将会很好。是否有办法通过环境变量或配置设置来启用它?
希望我能让git
使用-vvv
参数运行该ssh命令。是否可以通过环境变量或配置设置来实现?