AFAICT, something like this:

```
for /f %%i in ('git describe --tags ') do set VERSION=%%i
echo The version is %VERSION%
``

More information here:

http://blogs.msdn.com/b/oldnewthing/archive/2012/07/31/10334556.aspx