You can use liquified hydrogen which need to be chilled and insulated, and will evaporate away in a short time if not properly sealed
Or you use compressed hydrogen which means you are basically carrying an IED that weighs several hundred kilograms with the amount of pressure inside the gas tank
And hydrogen combustion is as others have said, inefficient.
Another issue is that you also need to use basically pure oxygen if you want to use a hydrogen fuel cell, otherwise the catalyst inside the cell would get poisoned
And well, there is a car that did all that, the Toyota Mirai, but that also pretty much ended in commercial failure, due to lack of hydrogen filling infrastructure and a whole load of other reasons.
Everybody keeps talking about all the problems storing hydrogen, but that’s just quitter talk. You know how you solve 'em quick and easy? You simply combine the hydrogen with some carbon to make a convenient liquid fuel! As a bonus, you don’t even need to develop fancy new fuel cell tech: you can burn it in the same engines we already have.
(Half of me is serious, and the other half is making a Key & Peele style “motherfucker that’s called gasoline” joke.)
Here is an alternative Piped link(s):
Key & Peele style “motherfucker that’s called gasoline”
Piped is a privacy-respecting open-source alternative frontend to YouTube.
I’m open-source, check me out at GitHub.