Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Commit AUTOMATICO feito pelo GitSync [Ferramenta por: PatoFlamejanteTV]
Browse files Browse the repository at this point in the history
SOBRE: GitSync e uma ferramenta cujo intuito e 'sincronizar' coisas de um repositorio noa-local para meu computador.	GitSync Info: Version 0.0.5, , DATE (24H): 16:54.
  • Loading branch information
PatoFlamejanteTV committed Aug 25, 2024
1 parent 7e7b63b commit 14e1646
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gitsync.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
@echo off
echo off
setlocal enableextensions
:: GitSync, by PatoFlamejanteTV
:: ----------------------------

set VERSION=0.0.5

set delay=10

set commitmsg=Commit AUTOMATICO feito pelo GitSync [Ferramenta por: PatoFlamejanteTV]
set gsabout=SOBRE: GitSync e uma ferramenta cujo intuito e 'sincronizar' coisas de um repositorio noa-local para meu computador.

set info=%gsabout% GitSync Info: Version %VERSION%,


Expand All @@ -18,11 +21,11 @@ echo DELAY: %delay%
echo ------------------------

:sync
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a:%%b)
git pull
git add *
git push
git commit -m "%commitmsg%" -m "%info%, DATE: %mytime%."
git commit -m "%commitmsg%" -m "%info%, DATE (24H): %mytime%."
timeout %delay%
cls
goto sync

0 comments on commit 14e1646

Please sign in to comment.