Gdim7 is made of these notes: G (root), Bb (minor third), Db (diminished fifth), Fb (diminished seventh).
With this shape the strings sound like this, from the G string to the A string: G, Db, Fb, Bb.
The diminished seventh chord is made only of minor thirds. That’s why it sounds the same when you move it three frets – handy as a passing chord.