On Sat, May 9, 2009 at 4:23 AM, Hunt Jon <[email protected]> wrote:
> > Hi - Can anybody tell me the difference between > > * ORIG_HEAD and HEAD? ORIG_HEAD is the old value of HEAD, preserved by " created by commands that moves your HEAD in a drastic way, to record the position of the HEAD before their operation", according to http://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html This means that, after you do a rebase or a merge or similar, "git diff ORIG_HEAD HEAD" will actually show you what happened to your branch due to this (large) operation. Also see http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#naming-commits > > * git diff HEAD and git diff --cached? > A nice picture is at http://blog.interlinked.org/static/images/git/diff.png-- I suggest reading the whole page at http://blog.interlinked.org/tutorials/git.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GitHub" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/github?hl=en -~----------~----~----~----~------~----~------~--~---
