Git has many features, but itโs likely that you only use a small subset on a daily basis. While git tends to handle things intelligently most of the time, there are situations when doing the most obvious thing doesnโt give git enough information to make informed choices.
In this post, weโll examine one such scenario – merging files. Through trial and error, Iโll show you the normal approach people take, some of the issues that occur with that approach, and a completely different approach that preserves some data lost in the first approach.