Project

General

Profile

GitDebugging » History » Version 2

Andreas Kohlbecker, 05/22/2017 09:00 AM

1 1 Andreas Kohlbecker
# Git Debugging
2
3
see also #6383
4
5 2 Andreas Kohlbecker
## debugging ssh connectivity problems
6 1 Andreas Kohlbecker
7 2 Andreas Kohlbecker
The following stack overflow discussions cover means of debugging ssh connectivity problems:
8 1 Andreas Kohlbecker
9 2 Andreas Kohlbecker
* http://stackoverflow.com/questions/27422936/git-push-with-ssh-remote-fails-unless-verbose
10
* http://stackoverflow.com/questions/25388499/how-can-i-run-git-push-pull-commands-with-ssh-verbose-mode/25390120#25390120
11
* **http://stackoverflow.com/questions/6178401/how-can-i-debug-git-git-shell-related-problems#17344517+**
12 1 Andreas Kohlbecker
13 2 Andreas Kohlbecker
There are various [https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables#Debugging](Git Internal Environment Variables for Debugging), using the following should be sufficient for the most situations:  
14 1 Andreas Kohlbecker
15 2 Andreas Kohlbecker
~~~
16
export GIT_SSH_COMMAND="ssh -v"
17
export GIT_TRACE=2
18
export GIT_TRACE_PACKET=true
19
~~~
20 1 Andreas Kohlbecker
21 2 Andreas Kohlbecker
For using GIT_SSH_COMMAND under windows sees http://stackoverflow.com/questions/31475646/using-git-ssh-command-in-git-for-windows
22 1 Andreas Kohlbecker
23 2 Andreas Kohlbecker