# Waiting for 'git status' command to complete making for long compile times

**URL:** <https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358>\
**Category:** Pipeline & Plugins\
**Tags:** compiling, unreal-engine, git, Visual-Studio, question\
**Created:** [December 15, 2017, 8:57pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358 "2017-12-15T20:57:42Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Darcey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Darcey](https://forums.unrealengine.com/u/Ryan_Darcey)\
**Post date:** [December 15, 2017, 8:57pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/1 "2017-12-15T20:57:42Z")

</div>

Just updated from 4.15 to 4.18.2 and compiling now has crazy long spin up time w/ suspicious ‘git status’ messages I don’t remember seeing earlier.

Any ideas here? Used to blow right through these projects when the target was up to date.

```
4 >------ Build started: Project: UnrealHeaderTool, Configuration: Development_Program x64 ------ 
2 > Using 'git status' to determine working set for adaptive non-unity build. 
2 > Waiting for 'git status' command to complete 
2 > Target is up to date 
2 > Deploying UnrealCEFSubProcess Win64 Development... 
2 > Total build time: 13.54 seconds (NoActionsToExecute executor: 0.00 seconds) 
5 >------ Build started: Project: UnrealLightmass, Configuration: Development_Program x64 ------ 
4 > Using 'git status' to determine working set for adaptive non-unity build. 
4 > Waiting for 'git status' command to complete 
4 > Target is up to date 
4 > Total build time: 13.83 seconds (NoActionsToExecute executor: 0.00 seconds) 
6 >------ Build started: Project: UnrealPak, Configuration: Development_Program x64 ------ 
3 > Using 'git status' to determine working set for adaptive non-unity build. 
3 > Waiting for 'git status' command to complete 
3 > Target is up to date 
3 > Deploying UnrealFileServer Win64 Development... 
3 > Total build time: 14.42 seconds (NoActionsToExecute executor: 0.00 seconds) 

```

… you get the idea …

---

<div class="post-metadata">

**Author:** ![Elencrak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elencrak](https://forums.unrealengine.com/u/Elencrak)\
**Post date:** [April 13, 2018, 10:03am UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/2 "2018-04-13T10:03:42Z")

</div>

Hi! I have the same issue. In my case the git status timed out almost every time i build my project. This behaviour increase significatively my compilation.

If anyone know why in 4.18+ a git status command are fired when Visual Studio compilation.

In second time depending on impact how to disable this behaviour.

---

<div class="post-metadata">

**Author:** ![Elencrak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elencrak](https://forums.unrealengine.com/u/Elencrak)\
**Post date:** [April 24, 2018, 7:41am UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/3 "2018-04-24T07:41:12Z")

</div>

I have found some answer in UE4.18 release note. The git features is enable by default if you have git folder in your project directory. This feature is used to exclude most iterated file from unity build. This is suppos decrease the compile (If you build the engine often indeed this feature is usefull, but in most case not).

To disable this behaviour you could change settings in BuildConfiguration.xml:

```
<SourceFileWorkingSet> 
<Provider>None</Provider> 
<RepositoryPath></RepositoryPath> 
<GitPath></GitPath> 
</SourceFileWorkingSet>

```

\*Added support for adaptive non-unity builds when working from a Git repository. The ISourceFileWorkingSet interface is now used to query files belonging to the working set, and has separate implementations for Perforce (PerforceSourceFileWorkingSet) and Git (GitSourceFileWorkingSet). The Git implementation is used if a .git directory is found in the directory containing the Engine folder, the directory containing the project file, or the parent directory of the project file, and spawns a “git status” process in the background to determine which files are untracked or staged. Several new settings are supported in BuildConfiguration.xml to allow modifying default behavior: Default git \*

Source : [Unreal Engine 4.18 Released! - Announcements - Unreal Engine Forums](https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1374252-unreal-engine-4-18-released)

---

<div class="post-metadata">

**Author:** ![Ryan\_Darcey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Darcey](https://forums.unrealengine.com/u/Ryan_Darcey)\
**Post date:** [April 24, 2018, 4:11pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/4 "2018-04-24T16:11:42Z")

</div>

hmmm…I’m getting some compile errors:

```
23>EXEC : error : C:\UnrealEngine\UnrealEngine\Engine\Saved\UnrealBuildTool\BuildConfiguration.xml(47): The 'https://www.unrealengine.com/BuildConfiguration:Provider' element is invalid - The value ' none ' is invalid according to its datatype 'String' - The Enumeration constraint failed.
23>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command "C:\UnrealEngine\UnrealEngine\Engine\Build\BatchFiles\Build.bat SymbolDebugger Win64 Development -waitmutex" exited with code 1.
23>Done building project "SymbolDebugger.vcxproj" -- FAILED.

```

This is the content of my xml file:

```
<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
	<SourceFileWorkingSet> 
		<Provider> none </Provider> 
		<RepositoryPath></RepositoryPath> 
		<GitPath></GitPath> 
	</SourceFileWorkingSet>
</Configuration>

```

I’m sure I’m doing something stupid…

---

<div class="post-metadata">

**Author:** ![TaryHIT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaryHIT](https://forums.unrealengine.com/u/TaryHIT)\
**Post date:** [May 25, 2018, 12:32pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/5 "2018-05-25T12:32:50Z")

</div>

Change it to:

```
<Provider> None </Provider>
<!-- May be None, Default, Git or Perforce -->

```

see: [Unreal Engine 4.18 Release Notes | Unreal Engine Documentation](https://docs.unrealengine.com/en-us/Support/Builds/ReleaseNotes/4_18)

---

<div class="post-metadata">

**Author:** ![Elyot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elyot](https://forums.unrealengine.com/u/Elyot)\
**Post date:** [April 6, 2021, 4:47pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/6 "2021-04-06T16:47:53Z")

</div>

Replying to an old post to add the following:

I fixed this problem, but my issue may have been different than OP’s. I was using git in Cygwin while compiling in Windows. The caching for unix-based and windows-based systems is completely different, so a git status in one was invalidating the cache of the other and forcing it to spend an extra 30s or so doing git status checks. This went away completely when I switched from Cygwin to git bash.

Now it’s lightning fast.

---

<div class="post-metadata">

**Author:** ![IslandQuest](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/islandquest/32/88710_2.png) [@IslandQuest](https://forums.unrealengine.com/u/IslandQuest)\
**Post date:** [April 16, 2022, 4:36pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/7 "2022-04-16T16:36:11Z")

</div>

> [@Elencrak](#):
>
> ```auto
> <SourceFileWorkingSet> 
> <Provider>None</Provider> 
> <RepositoryPath></RepositoryPath> 
> <GitPath></GitPath> 
> </SourceFileWorkingSet>
> 
> ```

Worked for me with UE5

_EDIT_

Still working in UE 5.2 (saves a lot of compile time too)

---

<div class="post-metadata">

**Author:** ![Andrej730](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrej730/32/1194692_2.png) [@Andrej730](https://forums.unrealengine.com/u/Andrej730)\
**Post date:** [September 10, 2023, 5:35pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/8 "2023-09-10T17:35:42Z")

</div>

This was a life saver, building time (even with 1 cpp file changed) reduced from 25 minutes to 1 minute.  
Tested on current ue5-main branch (which is Unreal Engine 5.4 now).

---

<div class="post-metadata">

**Author:** ![IslandQuest](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/islandquest/32/88710_2.png) [@IslandQuest](https://forums.unrealengine.com/u/IslandQuest)\
**Post date:** [September 11, 2023, 11:03pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/9 "2023-09-11T23:03:06Z")

</div>

Remove the spaces or it will error out. Should be:  
`<Provider>None</Provider>`

---

<div class="post-metadata">

**Author:** ![ryobg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ryobg](https://forums.unrealengine.com/u/ryobg)\
**Post date:** [October 18, 2023, 1:08pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/10 "2023-10-18T13:08:59Z")

</div>

Heads up for ninjas like me, you may need to edit the `%AppData%\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml` instead of the one inside the Project:`Saved\UnrealBuildTool\BuildConfiguration.xml`

---

<div class="post-metadata">

**Author:** ![muchcharles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@muchcharles](https://forums.unrealengine.com/u/muchcharles)\
**Post date:** [July 28, 2024, 4:58pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/11 "2024-07-28T16:58:17Z")

</div>

> [@ryobg](#):
>
> BuildConfiguration.xml

Yeah documentation needs to be updated, seemed the Project/Saved/UnrealBuildTool one is ignored sometimes, likely when on a launcher build?

---

<div class="post-metadata">

**Author:** ![ForIHaveArrived](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ForIHaveArrived](https://forums.unrealengine.com/u/ForIHaveArrived)\
**Post date:** [July 5, 2025, 11:46pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/12 "2025-07-05T23:46:58Z")

</div>

Same issue has resurfaced with Unreal 5.6 in 2025 and this fix still worked.

---

<div class="post-metadata">

**Author:** ![Davidzhu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davidzhu](https://forums.unrealengine.com/u/Davidzhu)\
**Post date:** [September 8, 2025, 2:56pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/13 "2025-09-08T14:56:03Z")

</div>

2025–Sep-08 Still Works

`Saved/UnrealBuildTool/BuildConfiguration.xml `

```xml
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
    <SourceFileWorkingSet>
        <Provider> None </Provider>
        <RepositoryPath></RepositoryPath>
        <GitPath></GitPath>
    </SourceFileWorkingSet>
</Configuration>

```

---

<div class="post-metadata">

**Author:** ![SimonLee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simonlee/32/909077_2.png) [@SimonLee](https://forums.unrealengine.com/u/SimonLee)\
**Post date:** [September 19, 2025, 11:01pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/14 "2025-09-19T23:01:29Z")

</div>

Thanks，it works for me

---

<div class="post-metadata">

**Author:** ![thor\_hzf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thor\_hzf](https://forums.unrealengine.com/u/thor_hzf)\
**Post date:** [October 28, 2025, 2:46pm UTC](https://forums.unrealengine.com/t/waiting-for-git-status-command-to-complete-making-for-long-compile-times/412358/15 "2025-10-28T14:46:33Z")

</div>

MacOS xml file location is : ` `

```auto
/Users/<USER>/.config/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml

```

create new one if it don’t exist….
