I once wrote a couple of html files and after a few decided to shorten what was a very tedious process by using pug. Pug however doesn't return a pretty html file but a single line html string, so git obvisously got the file changes wrong (it was my fault of course, but still). That was messy.