git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git config file

From
Taylor Blau <me@ttaylorr.com>
Date
Feb 1, 2021, 17:08 UTC
Message-ID
<YBg1lbg6koRG3aBA@nand.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

Previous: Terry Warren
Message 2 of 2 in “git config file”
  1. Terry WarrenFeb 1, 2021
  2. Taylor BlauFeb 1, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.