Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: getting the ref of a commit by day?

Tags:

git

How can I get the sha ref of a commit on a certain day?

like image 833
JP Silvashy Avatar asked Jun 12 '26 19:06

JP Silvashy


1 Answers

git log --pretty=format:"%H" --since="2010-03-25" --before="2010-03-26"

Learn git via github: git log tutorial

like image 122
erenon Avatar answered Jun 14 '26 10:06

erenon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!