There are gas tight syringes with a lock between needle and body, which can be used for the transportation of gas between locations. Or you use a gas sampling bag.
You cannot use a standard gas tight syringe with no lock to do so as hydrogen will diffuse…