Baby tummy ache

My baby seems to have bad gas and an upset tummy lately. There have been a couple of nights where he woke up crying inconsolably and he was arching his back, in pain, I assume. Anyway, I'm thinking it's something I'm eating. I've looked up foods that cause gas and it seems like the list goes on forever! So what DOESN'T cause gas??