相关疑难解决方法(0)

如何使用SSH详细模式运行git push/pull命令?

如果我使用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'\'''
Run Code Online (Sandbox Code Playgroud)

哪个很好,除非有时我得到这个错误:

fatal: Could not read from remote repository.
Run Code Online (Sandbox Code Playgroud)

我只是间歇性地得到它所以我不确定发生了什么.我知道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.
Run Code Online (Sandbox Code Playgroud)

如果我可以git-vvv打开的情况下运行该ssh命令,那将会很棒.有没有办法用环境变量或配置设置启用它?

git ssh

44
推荐指数
2
解决办法
2万
查看次数

标签 统计

git ×1

ssh ×1