Index: misc/git.cmd
===================================================================
--- misc/git.cmd	(revision b14ab8eca1296a579df9f7379638e8f21cd7d3fc)
+++ misc/git.cmd	(revision b14ab8eca1296a579df9f7379638e8f21cd7d3fc)
@@ -0,0 +1,22 @@
+@echo off
+
+set DEFAULT=$P$G
+
+git.exe %*
+
+
+git.exe branch > NUL 2>&1
+if %ERRORLEVEL% EQU 128 goto norepos
+
+
+for /f "tokens=2" %%i in ('git branch') do set BRANCH=%%i
+prompt $P (%BRANCH%) $G
+
+goto end
+
+
+:norepos
+prompt %DEFAULT%
+
+
+:end
