<div class="gmail_quote">On 16 August 2011 02:18, Ben Walton <span dir="ltr"><<a href="mailto:bwalton@opencsw.org">bwalton@opencsw.org</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm going to be putting together a git presentation for a mostly<br>
technical audience.  I expect that most of these folks will not have<br>
used git although a few will have.  I'm curious what those of you who<br>
use git would present.  What features do you:<br></blockquote><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>And I forgot to actually reply to the rest of it ;).</div><div>  </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
find hardest to understand?<br></blockquote><div>git rebase is probably the hardest to explain - unless people get the concept of modifying your history and how it differs from a merge.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

wish you'd learned earlier?<br></blockquote><div>git rebase -i HEAD~x; then edit a commit; then git reset HEAD~1; then git add -pi . the relevant bits to break the one commit into sensible logical comits.</div><div><br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
find most dangerous?<br></blockquote><div>it's pretty difficult to actually lose commits with git - if all else fails, you have git reflog. That said:</div><div>git reset --hard HEAD~1</div><div>is pretty dangerous if you don't mean to use it.</div>
<div><br></div><div>Also:</div><div><b>Always</b> start by branching before doing anything like a git rebase, or a git merge, or a feature branch, or a bug fix. When you start using tools like gerrit, it's almost impossible to use without feature branches - and rightly so!</div>
<div><br></div><div>Andrew</div><div><br></div><div>-- </div></div>Systems Developer<br><br>e: <a href="mailto:andrew.nicols@luns.net.uk" target="_blank">andrew.nicols@luns.net.uk</a><br>im: <a href="mailto:a.nicols@jabber.lancs.ac.uk" target="_blank">a.nicols@jabber.lancs.ac.uk</a><br>
t: +44 (0)1524 5 10147<br><br>Lancaster University Network Services is a limited company registered in<br>England and Wales. Registered number: 04311892. Registered office:<br>University House, Lancaster University, Lancaster, LA1 4YW<br>
<br>