Created
August 23, 2018 03:26
-
-
Save kaho2063/3acddf80d8bba35c4242fe32e076d546 to your computer and use it in GitHub Desktop.
Gitで変更があれば実行した日時をメッセージにcommitし、そのままpushするバッチファイルです。ライセンスはNYSL(http://www.kmonos.net/nysl/ )です。
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
SET nowdate=%date% %time% | |
git add -A | |
for /f "usebackq" %%t IN (`git status`) DO SET HERE=%%t | |
if not "%HERE%"=="" ( | |
git commit -m "・%nowdate%" | |
git push | |
) | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment