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?