Giving the gears is to tease someone by giving them a bit of a hard time but not in a harsh or unkind way.
They were giving me the gears because I went golfing with the boss.