Windows Codex Desktop creates an empty .git directory in Visual Studio project

Open 💬 2 comments Opened Jul 6, 2026 by vicken78

What version of the Codex App are you using (From “About Codex” dialog)?

Codex 26.623.70822 (Windows)

What subscription do you have?

Plus

What platform is your computer?

Windows 11

What issue are you seeing?

Windows Codex Desktop creates an empty .git directory in project

Version:
Codex 26.623.70822 (Windows) stand alone

Description:
Codex Desktop repeatedly creates an empty ".git" directory in my project.

Project path:
C:\Users\user\source\repos\reponame\reponame\.git empty location This is where its getting created.
C:\Users\user\source\repos\reponame\.git REAL git location.

The created ".git" folder is completely empty (no HEAD, config, objects, refs, etc.).

I verified the source using Microsoft Process Monitor. The process creating the folder is Codex.exe.

What steps can reproduce the bug?

Steps to reproduce:

  1. Delete the empty .git folder.
  2. Open Codex Desktop and work with the project.
  3. The empty .git folder is recreated.

What is the expected behavior?

Expected behavior:
Codex should not create an empty .git directory, especially when no Git repository is being initialized.

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗