Relax and stroke him, while giving him the odd treat and verbal praise. He needs to start associating calm behavior with positive consequences. German Shepherds are big, strong and capable of doing serious harm. So do not anger him by punishing him when he is aggressive.