Skip to content

Instantly share code, notes, and snippets.

@kaho2063
Created August 23, 2018 03:26
Show Gist options
  • Save kaho2063/3acddf80d8bba35c4242fe32e076d546 to your computer and use it in GitHub Desktop.
Save kaho2063/3acddf80d8bba35c4242fe32e076d546 to your computer and use it in GitHub Desktop.
Gitで変更があれば実行した日時をメッセージにcommitし、そのままpushするバッチファイルです。ライセンスはNYSL(http://www.kmonos.net/nysl/ )です。
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