Skip to content

Instantly share code, notes, and snippets.

@DJmong
Created August 8, 2024 00:43
Show Gist options
  • Select an option

  • Save DJmong/38b10d70abd0522f0fbecaf1606faed5 to your computer and use it in GitHub Desktop.

Select an option

Save DJmong/38b10d70abd0522f0fbecaf1606faed5 to your computer and use it in GitHub Desktop.
@echo off
setlocal
REM 현재 디렉토리에서 git commit code 기록
for /f "delims=" %%i in ('git rev-parse --short HEAD') do set current_commit=%%i
REM commit code를 target/ConsoleLaunch/git_version.txt에 기록
echo Current Directory Commit: %current_commit% > target/ConsoleLaunch/git_version.txt
echo Commit codes have been recorded in target/ConsoleLaunch/git_version.txt
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment