This can be the trickiest barre chord shape to play. To play it, you may want to just omit playing the high E string. This is how I play it. It makes it much more practical to use.
G Major Open
G Major Barred
You can determine the name of the chord when the root (lowest) note is
played on the frets in the chart below.
Play the G style barre chord on the first 12 frets starting on the 1st
fret. Listen to this exercise in the audio example below. You may want
to say the names of the chords as you travel up and down the fretboard
to help you remember them. The exercise is performed in the audio example