How do I make Git give more verbose output?

You may need more verbose output when troubleshooting Git networking problems. Here are two commands that give you more information during the connection process.

GIT_TRACE

If this variable is set to "1", "2" or "true" (comparison is case insensitive), git will print trace: messages on stderr telling about alias expansion, built-in command execution and external command execution. If this variable is set to an integer value greater than 1 and lower than 10 (strictly) then git will interpret this value as an open file descriptor and will try to write the trace messages into this file descriptor. Alternatively, if this variable is set to an absolute path (starting with a / character), git will interpret this as a file path and will try to write the trace messages into it. [1]

Before installing the InCommon certificate.

newuser@LinuxMint16 ~/Documents $ GIT_TRACE=2 git clone https://projects.cs.uaf.edu/newuser.git

   trace: built-in: git 'clone' 'https://projects.cs.uaf.edu/newuser.git'
   Cloning into 'newuser'...
   trace: run_command: 'git-remote-https' 'origin' 'https://projects.cs.uaf.edu/newuser.git'
   error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://projects.cs.uaf.edu/newuser.git/info/refs
   fatal: HTTP request failed

After installing the InCommon certificate.

newuser@LinuxMint16 ~/Documents $ GIT_TRACE=2 git clone https://projects.cs.uaf.edu/newuser.git

   trace: built-in: git 'clone' 'https://projects.cs.uaf.edu/newuser.git'
   Cloning into 'newuser'...
   trace: run_command: 'git-remote-https' 'origin' 'https://projects.cs.uaf.edu/newuser.git'
   Username for 'https://projects.cs.uaf.edu': newuser
   Password for 'https://newuser@projects.cs.uaf.edu':
   warning: You appear to have cloned an empty repository.

GIT_CURL_VERBOSE

This environment variable gives even more output than GIT_TRACE.

Before installing the InCommon certificate.

newuser@LinuxMint16 ~/Documents $ GIT_CURL_VERBOSE=1 git clone https://projects.cs.uaf.edu/newuser.git

   Cloning into 'newuser'...
   * Couldn't find host projects.cs.uaf.edu in the .netrc file; using defaults
   * About to connect() to projects.cs.uaf.edu port 443 (#0)
   *   Trying 137.229.113.134...
   * 0x831fff8 is at send pipe head!
   * STATE: CONNECT => WAITCONNECT handle 0x8316630; (connection #0)
   * Connected to projects.cs.uaf.edu (137.229.113.134) port 443 (#0)
   * Connected to projects.cs.uaf.edu (137.229.113.134) port 443 (#0)
   * found 159 certificates in /etc/ssl/certs/ca-certificates.crt
   * STATE: WAITCONNECT => PROTOCONNECT handle 0x8316630; (connection #0)
   * server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
   * Closing connection #0
   * Couldn't find host projects.cs.uaf.edu in the .netrc file; using defaults
   * About to connect() to projects.cs.uaf.edu port 443 (#0)
   *   Trying 137.229.113.134...
   * 0x831fff8 is at send pipe head!
   * STATE: CONNECT => WAITCONNECT handle 0x8316630; (connection #0)
   * Connected to projects.cs.uaf.edu (137.229.113.134) port 443 (#0)
   * Connected to projects.cs.uaf.edu (137.229.113.134) port 443 (#0)
   * found 159 certificates in /etc/ssl/certs/ca-certificates.crt
   * STATE: WAITCONNECT => PROTOCONNECT handle 0x8316630; (connection #0)
   * server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
   * Closing connection #0
   error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://projects.cs.uaf.edu/newuser.git/info/refs
   fatal: HTTP request failed

After installing the InCommon certificate.

newuser@LinuxMint16 ~/Documents $ GIT_CURL_VERBOSE=1 git clone https://projects.cs.uaf.edu/newuser.git

   Cloning into 'newuser'...
   * Couldn't find host projects.cs.uaf.edu in the .netrc file; using defaults
   * About to connect() to projects.cs.uaf.edu port 443 (#0)
   *   Trying 137.229.113.134...
   * 0x9e4aff8 is at send pipe head!
   * STATE: CONNECT => WAITCONNECT handle 0x9e41630; (connection #0) 
   * Connected to projects.cs.uaf.edu (137.229.113.134) port 443 (#0)
   * Connected to projects.cs.uaf.edu (137.229.113.134) port 443 (#0)
   * found 160 certificates in /etc/ssl/certs/ca-certificates.crt
   * STATE: WAITCONNECT => PROTOCONNECT handle 0x9e41630; (connection #0) 
   *      server certificate verification OK
   *      common name: projects.cs.uaf.edu (matched)
   *      server certificate expiration date OK
   *      server certificate activation date OK
   *      certificate public key: RSA
   *      certificate version: #3
   *      subject: C=US,postalCode=99775,ST=AK,L=Fairbanks,STREET=PO Box 755320,O=University of Alaska Statewide System,OU=UAF INE/CEM,CN=projects.cs.uaf.edu
   *      start date: Mon, 14 Apr 2014 00:00:00 GMT

   *      expire date: Tue, 14 Apr 2015 23:59:59 GMT

   *      issuer: C=US,O=Internet2,OU=InCommon,CN=InCommon Server CA
   *      compression: NULL
   *      cipher: AES-128-CBC
   *      MAC: SHA1
   * STATE: PROTOCONNECT => DO handle 0x9e41630; (connection #0) 
   > GET /newuser.git/info/refs?service=git-upload-pack HTTP/1.1
   User-Agent: git/1.7.10.4
   Host: projects.cs.uaf.edu
   Accept: */*
   Pragma: no-cache

   * STATE: DO => DO_DONE handle 0x9e41630; (connection #0) 
   * STATE: DO_DONE => WAITPERFORM handle 0x9e41630; (connection #0) 
   * STATE: WAITPERFORM => PERFORM handle 0x9e41630; (connection #0) 
   * additional stuff not fine transfer.c:1037: 0 0
   * additional stuff not fine transfer.c:1037: 0 0
   * The requested URL returned error: 401
   * Closing connection #0
   Username for 'https://projects.cs.uaf.edu': newuser
   Password for 'https://newuser@projects.cs.uaf.edu': 
   * Couldn't find host projects.cs.uaf.edu in the .netrc file; using defaults
   * About to connect() to projects.cs.uaf.edu port 443 (#0)
   *   Trying 137.229.113.134...
   * 0x9e4aff8 is at send pipe head!
   * STATE: CONNECT => WAITCONNECT handle 0x9ff2c58; (connection #0) 
   * Connected to projects.cs.uaf.edu (137.229.113.134) port 443 (#0)
   * Connected to projects.cs.uaf.edu (137.229.113.134) port 443 (#0)
   * found 160 certificates in /etc/ssl/certs/ca-certificates.crt
   * SSL re-using session ID
   * STATE: WAITCONNECT => PROTOCONNECT handle 0x9ff2c58; (connection #0) 
   *      server certificate verification OK
   *      common name: projects.cs.uaf.edu (matched)
   *      server certificate expiration date OK
   *      server certificate activation date OK
   *      certificate public key: RSA
   *      certificate version: #3
   *      subject: C=US,postalCode=99775,ST=AK,L=Fairbanks,STREET=PO Box 755320,O=University of Alaska Statewide System,OU=UAF INE/CEM,CN=projects.cs.uaf.edu
   *      start date: Mon, 14 Apr 2014 00:00:00 GMT

   *      expire date: Tue, 14 Apr 2015 23:59:59 GMT

   *      issuer: C=US,O=Internet2,OU=InCommon,CN=InCommon Server CA
   *      compression: NULL
   *      cipher: AES-128-CBC
   *      MAC: SHA1
   * STATE: PROTOCONNECT => DO handle 0x9ff2c58; (connection #0) 
   > GET /newuser.git/info/refs?service=git-upload-pack HTTP/1.1
   User-Agent: git/1.7.10.4
   Host: projects.cs.uaf.edu
   Accept: */*
   Pragma: no-cache

   * STATE: DO => DO_DONE handle 0x9ff2c58; (connection #0) 
   * STATE: DO_DONE => WAITPERFORM handle 0x9ff2c58; (connection #0) 
   * STATE: WAITPERFORM => PERFORM handle 0x9ff2c58; (connection #0) 
   * additional stuff not fine transfer.c:1037: 0 0
   * HTTP 1.1 or later with persistent connection, pipelining supported
   < HTTP/1.1 401 Authorization Required
   < Date: Tue, 08 Jul 2014 20:35:55 GMT
   < Server: Apache
   < WWW-Authenticate: Basic realm="Redmine git repositories" 
   < Content-Length: 401
   < Content-Type: text/html; charset=iso-8859-1
   < 
   * Ignoring the response-body
   * Connection #0 to host projects.cs.uaf.edu left intact
   * Issue another request to this URL: 'https://projects.cs.uaf.edu/newuser.git/info/refs?service=git-upload-pack'
   * Couldn't find host projects.cs.uaf.edu in the .netrc file; using defaults
   * Re-using existing connection! (#0) with host (nil)
   * Connected to (nil) (137.229.113.134) port 443 (#0)
   * 0x9e4aff8 is at send pipe head!
   * STATE: CONNECT => DO handle 0x9ff2c58; (connection #0) 
   * Server auth using Basic with user 'newuser'
   > GET /newuser.git/info/refs?service=git-upload-pack HTTP/1.1
   Authorization: Basic thIsIsmyPasSwORdiNbASe64==
   User-Agent: git/1.7.10.4
   Host: projects.cs.uaf.edu
   Accept: */*
   Pragma: no-cache

   * STATE: DO => DO_DONE handle 0x9ff2c58; (connection #0) 
   * STATE: DO_DONE => WAITPERFORM handle 0x9ff2c58; (connection #0) 
   * STATE: WAITPERFORM => PERFORM handle 0x9ff2c58; (connection #0) 
   * additional stuff not fine transfer.c:1037: 0 0
   * additional stuff not fine transfer.c:1037: 0 0
   * HTTP 1.1 or later with persistent connection, pipelining supported
   < HTTP/1.1 200 OK
   < Date: Tue, 08 Jul 2014 20:35:55 GMT
   < Server: Apache
   < Expires: Tue, 01 Jan 1980 00:00:00 GMT
   < Pragma: no-cache
   < Cache-Control: no-cache, max-age=0, must-revalidate
   < X-Powered-By: Phusion Passenger 3.9.1.beta
   < Content-Length: 38
   < Status: 200 OK
   < Content-Type: application/x-git-upload-pack-advertisement
   < 
   * STATE: PERFORM => DONE handle 0x9ff2c58; (connection #0) 
   * Connection #0 to host (nil) left intact
   warning: You appear to have cloned an empty repository.


1 GIT_TRACE