List of gcode reference sites
G codes are the instruction set of many things that position in X, Y, and Z. Including all CNCs.
You need to know the code to do manual manipulation of the HAAS, writing small program by hand, as well as proofing sections of computer generated g code from CAM packages.
I won't repeat the list here, the above references do it better.