Reference Request: Structure constants for G2
"Simple groups of Lie type" by R. W. Carter, a table after Section 12.4. But there only the values of $C_{\alpha\beta11}$ are listed. An explicit form of commutator formulas inside $U^+$ is given in Table IV of "Chevalley groups over commutative rings: I. Elementary calculations" by N. Vavilov and E. Plotkin, see the picture below.
SGA III, Expose XXIII, Section 3.4.
Probably the earliest reference is the 1956-58 Chevalley seminar, available online in typed format, which has been republished in 2005 as a typeset book edited by P. Cartier: see Chapter 21. (No special assumption about the characteristic of the field is needed.) My own later treatment of the classification of simple algebraic groups followed the same method in GTM 21 (Linear Algebraic Groups, Springer, 1975, 33.5). A similar approach was taken in SGA3, as indicated by Peter McNamara. (The later more elegant approach to the classification due to Takeuchi was worked out in Jantzen's book as well as Springer's textbook.)
Note too that the Lie algebra calculations were done in my earlier book GTM 9, first in the characteristic 0 setting: see 19.3.