This doesn't seem to be that hard, however, can't seem to get the output of a function call stuffed into a variable.
SET info=
call git log -6
REM echo %info%
echo { "timestamp": "%time% %date%", "info": "%info%" } >> ".\src\assets\build-info.json"
Some or a pointer in the right direction would be appreciated meaning.