Bardzo ciekawy problem dziś rozwikływałem. Miałem repozytorium gita, w którym każdy komit dotykał pewnego pliku, mimo że ja mu tego nie kazałem. W komitach parzystych ten plik był tworzony, w komitach nieparzystych był usuwany. Zobaczcie, tak:
$ git log --stat --oneline 34c1626 (HEAD -> master) komit 01 Adam/Mickiewicz/Poezja/zima_miejska.txt | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) $ touch foo1 $ git add -A $ git commit -m 'komit 02' [master 783dee3] komit 02 2 files changed, 138 insertions(+) create mode 100644 Adam/Mickiewicz/Poezja/piesn_filaretow.txt create mode 100644 foo1 $ git log --stat --oneline 783dee3 (HEAD -> master) komit 02 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ foo1 | 0 2 files changed, 138 insertions(+) 34c1626 komit 01 Adam/Mickiewicz/Poezja/zima_miejska.txt | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) $ touch foo2 $ git add -A $ git commit -m 'komit 03' [master 737d64d] komit 03 2 files changed, 138 deletions(-) delete mode 100644 Adam/Mickiewicz/Poezja/piesn_filaretow.txt create mode 100644 foo2 $ git log --stat --oneline 737d64d (HEAD -> master) komit 03 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 ----------------------------------------------------------------------------------------------------------- foo2 | 0 2 files changed, 138 deletions(-) 783dee3 komit 02 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ foo1 | 0 2 files changed, 138 insertions(+) 34c1626 komit 01 Adam/Mickiewicz/Poezja/zima_miejska.txt | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) $ touch foo3 $ git add -A $ git commit -m 'komit 04' [master 209ed3a] komit 04 2 files changed, 138 insertions(+) create mode 100644 Adam/Mickiewicz/Poezja/piesn_filaretow.txt create mode 100644 foo3 $ git log --stat --oneline 209ed3a (HEAD -> master) komit 04 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ foo3 | 0 2 files changed, 138 insertions(+) 737d64d komit 03 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 ----------------------------------------------------------------------------------------------------------- foo2 | 0 2 files changed, 138 deletions(-) 783dee3 komit 02 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ foo1 | 0 2 files changed, 138 insertions(+) 34c1626 komit 01 Adam/Mickiewicz/Poezja/zima_miejska.txt | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) $ touch foo4 $ git add -A $ git commit -m 'komit 05' [master 0558579] komit 05 2 files changed, 138 deletions(-) delete mode 100644 Adam/Mickiewicz/Poezja/piesn_filaretow.txt create mode 100644 foo4 $ git log --stat --oneline 0558579 (HEAD -> master) komit 05 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 ----------------------------------------------------------------------------------------------------------- foo4 | 0 2 files changed, 138 deletions(-) 209ed3a komit 04 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ foo3 | 0 2 files changed, 138 insertions(+) 737d64d komit 03 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 ----------------------------------------------------------------------------------------------------------- foo2 | 0 2 files changed, 138 deletions(-) 783dee3 komit 02 Adam/Mickiewicz/Poezja/piesn_filaretow.txt | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ foo1 | 0 2 files changed, 138 insertions(+) 34c1626 komit 01 Adam/Mickiewicz/Poezja/zima_miejska.txt | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+)
Nie zdradzę, co w końcu wykazało śledztwo, za to załączam repozytorium, na który widać ten problem: zagadkowe_repo.tar.bz2. No, tak dokładniej to to co załączam to nie jest dokładnie to moje prawdziwe repozytorium (ono jest wielkie), tylko repozytorium zabawkowe, w którym zreprodukowałem taki sam problem. Pewnie jak obejrzycie to repozytorium zabawkowe to szybko zobaczycie, o co chodzi - ale weźcie pod uwagę, że wy macie łatwiej niż miałem ja, bo u mnie to repozytorium było wielkie, z masą rzeczy, które zaciemniały śledztwo.