I made several commits in the local branch, but I'm not sure the best way to distinguish what I have is from the state of my branch. I know that I can do something like git diff HEAD HEAD~6 if there were 6 commits in my branch, but I hoped that it did not depend on the number of commits.
Edit: I did not mention this: I was hoping that I would not have to break through the journal in order to get a hash from the commit that I was alienating from. For example, if I had 80 commits, that would not be a fun task.
In addition, suppose that the original branch I, branched, already had several changes.
git git-diff
Newtang Jun 17 '11 at 19:58 2011-06-17 19:58
source share