by whoibrar on 8/20/22, 4:10 PM with 4 comments
Since, git as a Version control system tracks changes as tiny as single character. I was wondering if there was something where I could enter a date and it will show me how the repository looked like on that particular day, or even better show how file(s) has changed in weeks, months, years and probably decades.
[0] : https://techcrunch.com/2015/08/20/google-photos-introduces-rediscover-this-day-to-help-you-reminisce/
by Tomte on 8/20/22, 4:25 PM
See also https://git-scm.com/docs/git-rev-parse, that works with all kinds of git subcommands.
BTW, git doesn't track every change, only when you add the change.
by shoo on 8/20/22, 7:53 PM
git log --follow --patch -- some/file
It composes with Tomte's @{1 year ago} tip if you want to start reading at a particular point in time: git log --follow --patch 'main@{1 year ago}' -- some/file
ref: https://git-scm.com/docs/git-logby beverett on 8/20/22, 5:56 PM