- In my commits history I see I made a commit where I added few lines to a file Masterlist/Index.cshtml.
- Nobody else edited the file since and 3 months before.
- After the commit there were some merges with conflicts which were resolved and after that there is a merge without conflict which has these lines from the file removed.
- In file history there are no changes except the one 3 months old...
Commit where I added the lines:
git log --graph --full-history -- ABC/Views/Masterlist/Index.cshtml
produced this:
git log -S"-webkit-transform: translateY(-100%) rotate(90deg); /* Safari */" -c
produced this:
My questions:
- How is it possible that the added lines were erased? What could go wrong?
- How to prevent this from happening?
- Why there are no entries in file history?
We are using Source tree or Visual studio when working with git.