How I avoid conflicts after git merge –squash

Here is a git trick I use to spare myself resolving conflicts on repositories with many features in-development, where one feature depends on other feature. Those conflicts happen when a feature is merged-squashed, and another feature now suddenly needs to resolve conflicts.