Created
July 13, 2020 07:07
-
-
Save hz2/9f6d04697f429c2813b3fd790921eaf4 to your computer and use it in GitHub Desktop.
This file contains 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 | |
color 02 | |
for %%I in (.) do title sync %%~nxI | |
:: set charset | |
git config --global core.quotepath false | |
git config --global gui.encoding utf-8 | |
git config --global i18n.commit.encoding utf-8 | |
git config --global i18n.logoutputencoding utf-8 | |
set LESSCHARSET=utf-8 | |
CHCP 65001 | |
cd './' | |
@echo on | |
git pull | |
git add ./ | |
@echo off | |
FOR /F "tokens=* USEBACKQ" %%F IN (`git status -s`) DO ( SET var=%%F ) | |
FOR /F "usebackq" %%i IN (`hostname`) DO SET hostname=%%i | |
FOR /F "usebackq" %%j IN (`time /t`) DO SET time2=%%j | |
@echo on | |
git commit -m "%var% on %date% %time2% @ %hostname% " | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment