The standard grips this chord is usually shown with.
Gdim is G, Bb and Db, a diminished triad. The shape this page opens on is written 31x32x, lowest string first.

Also written G°, Go or G diminished. The same chord either way; which spelling you meet depends on who wrote the chart.
There are 5 common shapes for Gdim on the guitar, and 48 derived voicings in the triad family.
In which keys. Every note of Gdim belongs to F minor (the ii°) and Ab major (the vii°).
The common shapes, written lowest string first: 31x32x, xx56x6, x-10-8-x-8-9, x-10-11-12-11-x, 15-13-x-15-14-x.
Triad. Three notes across one string set. Gdim has xxx323, x453xx, 3453xx, 645xxx, 6456xx, xx868x, xxx686, xx8686.
Tensions. A shell of Gdim, root, third and seventh, leaves a string free, and the tones that belong over it are the 11 (C) and the b13 (Eb).
The common shapes and the derived voicings come from different places, and both are explained in where the chords and the theory come from.
Shows each chord the way this style would voice it, and marks which of its alternatives belong to the idiom.