I have the below scenario:
main branch before consolidation:
│ └── dir1
│ │ └── python1
│ │ │ └── test1.py
│ └── dir2
│ │ └── python2
│ │ │ └── test2.py
│ └── dir3
│ │ └── python3
│ │ │ └── test3.py
main branch after consolidation:
│ └── dir1
│ └── dir2
│ │ └── python1
│ │ │ └── test1.py
│ │ └── python2
│ │ │ └── test2.py
│ │ └── python3
│ │ │ └── test3.py
│ └── dir3
feature branch before merge (test4.py history has 10 commits in history):
│ └── dir1
│ │ └── python1
│ │ │ └── test4.py
main branch after merge from feature branch (using git merge -s ort and resolving the conflict on non existing test4.py):
│ └── dir1
│ └── dir2
│ │ └── python1
│ │ │ └── test1.py
│ │ │ └── test4.py
│ │ └── python2
│ │ │ └── test2.py
│ │ └── python3
│ │ │ └── test3.py
│ └── dir3
The problem is that all the history of test4.py got deleted... any idea why it happens and if its avoidable?
git blame/gitk/git log, and also tried via intelji GUI, but nothing show the historygit logshows the commits as found by the fact that they are the history;git log -- pathselects a subset of commit-history to walk, and then shows an even smaller subset of that subset;git log --follow -- pathattempts to detect file renames and modifies the way thatgit log -- pathworks by changing which path it's using to do the subset-selecting, as it goes.