From 5ca5e6845def31c1a9ab60da7bfda2b8782eaa5d Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 24 Mar 2023 11:28:07 +0200 Subject: [PATCH] git/README.md: note debug environment variables Resolves: mikaela/shell-things#113 Resolves: mikaela/shell-things#118 --- git/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/git/README.md b/git/README.md index ffa7753..059e89b 100644 --- a/git/README.md +++ b/git/README.md @@ -3,6 +3,7 @@ - [Random git files](#random-git-files) - [Tracking GitHub pull requests with `git`](#tracking-github-pull-requests-with-git) + - [Debugging git](#debugging-git) @@ -23,3 +24,13 @@ dead `git.io` link. - TODO: Figure out if this also works for GitLab or what is the GitLab version? Gitea too. - 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)