[Glean] Debugging Git Using Trace
Debugging Git Using Trace
We can debugging and get to know the command that Git executed by GIT_TRACE
.
For example, when I meet the problem related to GPG signature when I commit:
error: gpg failed to sign the data
fatal: failed to write commit object
Then I can use this command to check the problem:
GIT_TRACE=true git commit
Then I can see:
..... trace: run_command: gpg --status-fd=2 -bsau xxxxxxxxx
After execute this command manually, it had no response.
Therefore, I killed the gpg-agent
and restart it again.
gpgconf --kill gpg-agent