Varying number of build actions for different PC's

After upgrading to 4.22 my friend’s build times went up dramatically. On investigation, he has 20 more build actions on a full rebuild than I do. Does anyone know why this might be the case?

Additionally, I noticed that he does not get this line 2>Using 'git status' to determine working set for adaptive non-unity build

My output
His output 1>------ Skipped Rebuild All: Project: UE4, Configuration: BuiltWithUnrealBuildT -

There are 2 factors, first the amount of free threads on your CPU and the amount of RAM your PC has.
For compiling Unreal Header tool groups source files into monolithic files that are then compiled. The amount of requiered actions is basically the amount of files that will be compiled (this includes not only the files you created but all the ones in the intermediate folder, including .generated.h files).

It could be that he has residual intermediate files causing the slowdown. Are you both using the same version of Visual Studio?

We figured this out - it came down to running git init at the base of the project. The build times improved back to about their previous level