git - Which version is this? Compare a bare source tree with the repository -


this question has answer here:

i have source tree (of php application) rsynced out of git repository @ point in time.

can find matching version in repo (the last commit present in source tree)? - if there minor modifications exported, untracked version of source tree?

it should possible if terms defined correctly. there tool or builtin git utility solve problem?

there may better solutions copy exported source tree git working directory (without committing it) , compare previous revisions in loop. here's example on how work bash script:

for ((i=1; i<100; i++));   echo $i   git diff --shortstat head~$i done 

then minimum number of changes.


Comments