commit 76b29fec193f261f103bff9e75ae115411710eb4 Author: jdg Date: Sun Sep 12 19:59:11 2021 +0200 First commit 08/09/2021 diff --git a/README.md b/README.md new file mode 100644 index 0000000..0da6f96 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +#gitUP + + +*08/09/2021* + +ToDo: wwtcf? + + +![screenshot](/gitUP.png "Screenshot") diff --git a/gitup.cmd b/gitup.cmd new file mode 100644 index 0000000..73f7b44 --- /dev/null +++ b/gitup.cmd @@ -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 \ No newline at end of file