Git history starting from a specific commit up to the last commit -
Git history starting from a specific commit up to the last commit -
i know can utilize next command commit history starting specific commit first commit in history (going backwards).
git log --pretty=format:"%h - %an, %ar : %s" "de37b49d8f06321275079e6b3a3f00aa22bbff99"
however, how reverse display history starting specific commit -including it- lastly commit in history (going upwards)?
thanks
presuming de37b49 isn't merge commit
git log --pretty=format:"%h - %an, %ar : %s" de37b49~1..head
which saying "not reachable parent of de37b49" "reachable head"
if merge commit, need utilize
git log ... ^de37b49^1 ^de37b49^2 head
(for many parents has, presuming 2)
git
Comments
Post a Comment