# git config file

2 messages from 2021-02-01 to 2021-02-01. Participants: Terry Warren, Taylor Blau.
Thread: https://gitlist.dev/t/55084

## Terry Warren, 2021-02-01 14:19

Subject: git config file
Message-ID: <46D52CDE-15F2-4DA6-8E89-56E0EF86FFF4@me.com>
URL: https://gitlist.dev/e/46D52CDE-15F2-4DA6-8E89-56E0EF86FFF4%40me.com

```
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
```

## Taylor Blau, 2021-02-01 17:08

Subject: Re: git config file
Message-ID: <YBg1lbg6koRG3aBA@nand.local>
URL: https://gitlist.dev/e/YBg1lbg6koRG3aBA%40nand.local
In-Reply-To: <46D52CDE-15F2-4DA6-8E89-56E0EF86FFF4@me.com>

```
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

```
