Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (7 sloc) 196 Bytes
: start
tasklist /FI "IMAGENAME eq git.exe" 2>NUL | find /I /N "git.exe">NUL
if "%ERRORLEVEL%" NEQ "0" goto unlock
taskkill /f /im git.exe
goto start
: unlock
del .git\index.lock