First commit 08/09/2021

This commit is contained in:
2021-09-12 19:59:11 +02:00
commit 76b29fec19
2 changed files with 40 additions and 0 deletions

9
README.md Normal file
View File

@ -0,0 +1,9 @@
#gitUP
*08/09/2021*
ToDo: wwtcf?
![screenshot](/gitUP.png "Screenshot")

31
gitup.cmd Normal file
View File

@ -0,0 +1,31 @@
#@echo off
echo Uploading folder: %~1
cd %~1
:: Set the folder name as the project name
for /f %%i in ('cd') DO set pn=%%~nxi
:: Extract the file date to set in the comment at least the date
dir *.c* /OD /N /4 > %temp%\date.txt
for /f "skip=5 delims=" %%i in (%temp%\date.txt) do set d=%%i & goto :next
:next
set "d=%d:~0,10%"
echo #%pn% > README.md
echo[ >> README.md
echo[ >> README.md
echo *%d%* >> README.md
echo[ >> README.md
echo ToDo: wwtcf? >> README.md
echo[ >> README.md
echo[ >> README.md
echo ![screenshot](/%pn%.png "Screenshot") >> README.md
git init
git add .
git commit -m "First commit %d%"
git remote add origin https://git.infdj.com/C/%pn%.git
git push -u origin master -f
:end