<?xml version="1.0" encoding="UTF-8"?>
<guide>
  <body>&lt;p&gt;We highly recommend you use the &lt;a href=&quot;http://repo.or.cz/w/git.git?a=blob_plain;f=contrib/completion/git-completion.bash;hb=master&quot;&gt;git completion&lt;/a&gt; file from the contrib dir in git, and put &lt;code&gt;\$(__git_ps1 &quot; %s&quot;)&lt;/code&gt; somewhere in the PS1 in your .bashrc file, like in &lt;a href=&quot;http://gist.github.com/151759&quot;&gt;this gist&lt;/a&gt;:&lt;/p&gt;
&lt;script src=&quot;http://gist.github.com/151759.js&quot;&gt;&lt;/script&gt;&lt;p&gt;If you would like a simpler solution, drop the contents of &lt;a href=&quot;http://gist.github.com/5129&quot;&gt;this gist&lt;/a&gt; into your .bashrc file (of course, edit as you see fit).&lt;/p&gt;
&lt;script src=&quot;http://gist.github.com/5129.js&quot;&gt;&lt;/script&gt;&lt;p&gt;There is also &lt;a href=&quot;http://github.com/lvv/git-prompt/&quot;&gt;more advanced git prompt&lt;/a&gt;  (&lt;a href=&quot;http://volnitsky.com/project/git-prompt&quot;&gt;docs/screenshots&lt;/a&gt;), and a cool project for &lt;span class=&quot;caps&quot;&gt;ZSH&lt;/span&gt; with something similar called &lt;a href=&quot;http://github.com/bkerley/zshkit&quot;&gt;zshkit&lt;/a&gt; .&lt;/p&gt;</body>
  <created-at type="datetime">2008-06-24T13:05:59-07:00</created-at>
  <id type="integer">53</id>
  <permalink>put-your-git-branch-name-in-your-shell-prompt</permalink>
  <title>put your git branch name in your shell prompt</title>
  <updated-at type="datetime">2009-08-16T21:05:44-07:00</updated-at>
  <user-id type="integer">12983</user-id>
</guide>
