Currently I'm using this alias to fetch master in the background and then switch to it. This way Visual Studio works the fastest for me:
[alias]
fetch-checkout = !git fetch -p && git fetch origin master:master && git checkout master
What I'd like to do on top of that is to capture current branch name and delete it afterwards.
Is it possible on Windows?