git log a specific HEAD~N

Is there any way to just show the output of git log a number of commits ago?

I tried, e.g. git log HEAD~3 but that seems to show everything, not just the entry for HEAD~3 (three commits ago from HEAD)

Answers


Yes, git show HEAD~3 will display the single commit object (including a diff of files it changed, by default).


Need Your Help

Magento - Loop through all products in category, change value and save

php magento loops collections foreach

I need to loop through all the products in a particular category, change a custom attribute and then save each product.