G6 is made of these notes: G (root), B (major third), D (fifth), E (major sixth).
With this shape the strings sound like this, from the G string to the A string: G, D, E, B.
A sixth chord sounds bright and a little old-fashioned, like swing or Hawaiian music. It can replace the major chord.