@echo off setlocal cd /d "%~dp0" if exist ".git" ( echo A .git folder already exists here - nothing to do. pause exit /b 0 ) echo Initializing git repository in: echo %cd% echo. git init if errorlevel 1 ( echo. echo git init failed. Is Git installed and on your PATH? pause exit /b 1 ) git add -A git commit -m "Initial commit of ETL Help v3 pages" echo. echo Done. Run this again from a terminal later with: echo git add -A echo git commit -m "describe the change" echo. pause