git - How to find the commit having only a snapshot of the repo -


i have full repo, commit history, repo

i have snapshot of repo, made sometime in past. let's call snapshot. snapshot based on version of repo taken in past, additions/changes.

if check differences:

$ diff -wqr repo/ snapshot/  | grep -c differ 538 $ diff -wqr repo/ snapshot/  | grep -cv differ 9 

so, positive not many changes have been made master repo: looking @ wrong repo commit. 1 commit snapshot taken?

there many differences not know start. know nothing repo, clueless of when snapshot taken. there no date information can point me period, no version file, nothing ...

what comes mind take 1 of files in snapshot differ repo, , run command see in commit file appears verbatim. luck, like:

$ list-commits.sh snapshot/xxx/my-file.py repo file snapshot/xxx/my-file.py appears verbatim in following commits: b77ee66 74f6d4f ... 

(it chance chosing 1 of files changed in snapshot: in case no commit list, , try file)

this limit commits need investigate. there method of doing plain git commands?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -