<div dir="ltr">On Mon, Mar 11, 2013 at 5:51 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Read the bottom of this page Jed sent:<div>
<br></div><div>  <a href="http://gitolite.com/gcs/" target="_blank">http://gitolite.com/gcs/</a></div><div><br></div><div>This detached HEAD business is something that makes Git less usable.</div>
<div>It is very flexible, but this is easy to screw up. If we are branching</div><div>around this is going to screw up right away.</div></div></blockquote><div><br></div><div style><div><font face="courier new, monospace">master ~/petsc$ git checkout b95f98c</font></div>
<div><font face="courier new, monospace">Note: checking out 'b95f98c'.</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">You are in 'detached HEAD' state. You can look around, make experimental</font></div>
<div><font face="courier new, monospace">changes and commit them, and you can discard any commits you make in this</font></div><div><font face="courier new, monospace">state without impacting any branches by performing another checkout.</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">If you want to create a new branch to retain commits you create, you may</font></div><div><font face="courier new, monospace">do so (now or later) by using -b with the checkout command again. Example:</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">  git checkout -b new_branch_name</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">HEAD is now at b95f98c... Merge subtree 'buildsystem/master'</font></div>
<div><span style="font-family:'courier new',monospace">(b95f98c...) ~/petsc$ git branch</span><br></div><div><font face="courier new, monospace">* (no branch)</font></div><div><font face="courier new, monospace">  maint</font></div>
<div><font face="courier new, monospace">  maint-3.2</font></div><div><font face="courier new, monospace">  master</font></div><div><font face="courier new, monospace">  next</font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace"><br></font></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div>So, on this page that Karl is writing, we don't just need instructions for</div>
<div>doing things correctly. We need a bunch of diagnostic commands that</div><div>will tell you what is happening and tell you what is screwed up.</div></div></blockquote><div><br></div><div style>Sure, and we can add to it as we learn more ways that people can get lost. Using __git_ps1 helps a lot.</div>
</div></div></div>