Gdim is made of these notes: G (root), Bb (minor third), Db (diminished fifth).
With this shape the strings sound like this, from the g string to the D string: G, Db, G, Bb, Db.
A diminished chord is two minor thirds stacked on top of each other. It sounds tense and is usually played only briefly as a passing chord.
Gdim belongs to these major keys: A flat major (degree VII).