Show commits in the order they were committed
When reviewing a series of commits its sometimes helpful to review them in the order they were committed.
By default, if you pass a range to git show
, like git show HEAD..master
(assuming you are on a different branch and master is ahead by a number of
commits) the commits will be shown in the order of most recent to least recent.
To view the commits in least recent to most recent order use the --reverse
flag:
git show HEAD..master --reverse
Tweet