Found a same post but his fix didn’t work for me:
H:\blender-git\blender>cd H:\blender-git\blender\lib\windows_x64
H:\blender-git\blender\lib\windows_x64>git lfs pull
Not in a Git repository.
H:\blender-git\blender\lib\windows_x64>git lfs checkout main
Not in a Git repository.
also I deleted python 311 because i updated to 312 but still have it building with 311