Current Git branch name in command prompt | martinvalasek.com

Current Git branch name in command prompt | martinvalasek.com.

You may want to add a new line at the end with:

\n\$

The new line is just before the $ symbol at the end. I’ve got used to the git-bash Windows prompt and prefer it that way. It also saves some space for your long commands.