Files
Inventaire-gestion/Scripts/push_auto.bat
2025-05-18 09:07:43 +02:00

27 lines
526 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
:: Script Git automatique pour Ratio_Inventaires
cd /d %~dp0
:: Affiche létat
git status
:: Supprime les fichiers supprimés (au cas où)
git add -u
:: Ajoute uniquement les fichiers non ignorés (hors Excel/dev)
git add --all -- :!Excel/dev/*
:: Message de commit avec date et heure
set hh=%time:~0,2%
if "%hh:~0,1%"==" " set hh=0%hh:~1%
set commitmsg=Maj auto %date% %hh%%time:~3,2%
git commit -m "%commitmsg%"
:: Push vers origin master
git push origin master
echo.
echo ===== PUSH TERMINE =====
pause