title: Git Bash Prompt- Current Branch Name Stops Showing After Git Command
body: <p>Using GitBash with Git for Windows, my PS1 variable is set to display current branch as such:</p>
  
  <pre><code>$ echo $PS1
  \[\033]0;$TITLEPREFIX:${PWD//[^[:ascii:]]/?}\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$
  </code></pre>
  
  <p>This works fine to start, for example my prompt starts out like</p>
  
  <pre><code>myuser@mypc MINGW64 /c/git/myrepo (master)
  $
  </code></pre>
  
  <p>However, after I run any git command, the current branch portion is omitted until I restart the shell.</p>
  
  <pre><code>myuser@mypc MINGW64 /c/git/myrepo (master)
  $ git branch
  * master
    myOtherBranch
  
  myuser@mypc MINGW64 /c/git/myrepo
  $
  </code></pre>
  
  <p>But if I run __git_ps1 it still tells me the correct value:</p>
  
  <pre><code>myuser@mypc MINGW64 /c/git/myrepo
  $ echo `__git_ps1`
  (master)
  
  myuser@mypc MINGW64 /c/git/myrepo
  $
  </code></pre>
  
  <p>Any ideas what could be happening, or how I could go about diagnosing/fixing this issue?</p>