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 E string: G, D, B, E.
A sixth chord sounds bright and a little old-fashioned, like swing or Hawaiian music. It can replace the major chord.