git/README.md: note debug environment variables

Resolves: mikaela/shell-things#113
Resolves: mikaela/shell-things#118
This commit is contained in:
Aminda Suomalainen 2023-03-24 11:28:07 +02:00
parent 73dab41b00
commit 5ca5e6845d
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -3,6 +3,7 @@
- [Random git files](#random-git-files) - [Random git files](#random-git-files)
- [Tracking GitHub pull requests with `git`](#tracking-github-pull-requests-with-git) - [Tracking GitHub pull requests with `git`](#tracking-github-pull-requests-with-git)
- [Debugging git](#debugging-git)
<!-- END doctoc generated TOC please keep comment here to allow auto update --> <!-- END doctoc generated TOC please keep comment here to allow auto update -->
@ -23,3 +24,13 @@ dead `git.io` link.
- TODO: Figure out if this also works for GitLab or what is the GitLab version? - TODO: Figure out if this also works for GitLab or what is the GitLab version?
Gitea too. Gitea too.
- https://gitea.blesmrt.net/mikaela/gist/issues/39 - https://gitea.blesmrt.net/mikaela/gist/issues/39
## Debugging git
Git obeys some environment variables that may be helpful for troubleshooting
- `GIT_CURL_VERBOSE=1` results to more information what git is doing e.g.
during cloning.
- [Verbose Output from git](https://wrightturn.wordpress.com/2016/08/16/verbose-output-from-git/)
- `GIT_TRACE=1` & `GIT_TRACE2=1` give very deep debug information
- [StackOverflow](https://stackoverflow.com/a/47561300)