Squashing your commits from the file creation to its removal is a simple solution to this if it fits your particular scenario. Obviously not suitable if you need to keep the history between these two points.