troubleshooting
git debug options
[!TIP]
commit 14e2411, commit 81590bf, commit 4527aa1, commit 4eee6c6 (07 Sep 2016)
Use the new
GIT_TRACE_CURL
environment variable instead of the deprecatedGIT_CURL_VERBOSE
.
OPTION | DESCRIPTION |
---|---|
| Enable general trace messages |
| DEPRECATED: Print HTTP headers (similar to |
| Print HTTP headers (similar to |
| - |
| Print SSH debug messages (similar to |
| Enable trace messages for all accesses to any packs |
| Enable trace messages for all packets coming in or out of a given program |
| Enable tracing of packfiles sent or received by a given program |
| Enable performance related trace messages |
| Enable trace messages printing the .git, working tree and current working directory after Git has completed its setup phase |
| Enable trace messages that can help debugging fetching/cloning of shallow repositories |
Linux
or
or
example
GIT_TRACE_PACK_ACCESS
GIT_TRACE_PACKET
GIT_TRACE_PERFORMANCE
GIT_TRACE_SETUP
windows
plugins/components
diff-highlight: command not found
ubuntu
centos/rhel
arch
error: RPC failed
[!TIP]
error: RPC failed; curl 92 LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out
references:
installation
Ubuntu
no refs in common and none specified; doing nothing.
no refs in common and none specified; doing nothing.
error
solution:
git push -u origin master
CentOS
/bin/sh: cc
error:
solution:
openssl/ssl.h
error:
solution:
expat.h
error:
solution:
asciidoc
error:
solution:
docbook2x-texi
error:
solution:
xmlto
error:
solution:
gnu/stubs-64.h
error:
solution:
git diff
extreamly slow
git diff
extreamly slow[!NOTE|label:references:]
* Understanding the performance bottlenecks
GIT_PS1_SHOWDIRTYSTATE
: 58 milliseconds.
GIT_PS1_SHOWUNTRACKEDFILES
: 106 milliseconds.
GIT_PS1_SHOWSTASHSTATE
: 8.7 milliseconds.
GIT_PS1_SHOWUPSTREAM
: 10.6 milliseconds.
way to debug
[!NOTE|label:references:]
solution
[!WARN|label:not been fixed yet]
check status
[!NOTE|label:references:]
modify configures
[!NOTE|label:references:]
GIT_PS1
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWSTASHSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWUPSTREAM="auto"
GIT_PS1_HIDE_IF_PWD_IGNORED=true
GIT_PS1_SHOWCOLORHINTS=true
bash.showDirtyState
[!NOTE|label:references:]
Last updated