I have same file in 2 differents folder. They have different content until now. Now I want to make one of them compatible with the other.
Can I share the first one on the second folder without loosing history
There isn't really a way to do this. If the contents of the file need to be the exact same going forward, you should probably just rename the existing file (to retain its history), and then share the other file into the folder. The new share will have all the history of the other file though...