Created
August 8, 2024 00:43
-
-
Save DJmong/38b10d70abd0522f0fbecaf1606faed5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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