On 2009.01.02 17:13:19 -0800, chris@xxxxxxxxxxxx wrote: > David > > git reset --hard <commit> > "resets" the current branch head. > > Is this equivalent to deleting the branch > and doing > > git branch <branch> <commit> ?? > > So "git reset --hard" is syntactic sugar and 'unnecessary' right? Deleting the branch also deletes the reflog, while using reset adds a new entry to the reflog. So returning the branch head to its previous state is pretty trivial if you used reset and might be pretty hard if you deleted the branch. HEAD's reflog should probably have the right entry as well, but chances are that it's hidden in a crapload of other entries, especially if you rebase often. Björn -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html