Permalink
Browse files

Added batch file to kill git and unlock when VS isn't interacting wit…

…h command line nicely.
  • Loading branch information...
1 parent 8b1a724 commit d6a60ee2bc780d9f75c5ac71641b138467b8296a Greg Dennis committed Sep 29, 2016
Showing with 12 additions and 0 deletions.
  1. +12 −0 UnlockGit.bat
View
@@ -0,0 +1,12 @@
+: 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

0 comments on commit d6a60ee

Please sign in to comment.