git config file

2 messages, 2 authors, 2021-02-01 · open the first message on its own page

git config file

From: Terry Warren <hidden>
Date: 2021-02-01 14:27:30

can git environment variables (such as GIT_TRACE) be added to the git config file? The reason I am asking this question is that I am trying to troubleshoot a problem that only occurs when running git from within an IDE. Running from the command line shell works as expected.

thanks for any response
Terry Warren

Re: git config file

From: Taylor Blau <hidden>
Date: 2021-02-01 17:09:27

Hi Terry,

On Mon, Feb 01, 2021 at 06:19:01AM -0800, Terry Warren wrote:
can git environment variables (such as GIT_TRACE) be added to the git
config file? The reason I am asking this question is that I am trying
to troubleshoot a problem that only occurs when running git from
within an IDE. Running from the command line shell works as expected.
There isn't a way to define the GIT_TRACE variable, nor is there a
general way to define arbitrary environment variables that should be set
at the beginning of every Git process.

You can use the new trace2 sub-system, which does have configuration
variables that you can hook into:

  https://git-scm.com/docs/git-config#Documentation/git-config.txt-trace2normalTarget

(beginning at the above link and continuing down). Alternatively, if
your IDE supports it, you could set an environment variable by setting
your git executable to be something like

  env GIT_TRACE=xyz /path/to/git

thanks for any response
Terry Warren
Thanks,
Taylor
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help