If you see a German Shepherd in your dream, it shows that you are protective and attentive to a situation. If you are training the dog, you want to learn new things and are easily convinced. You want some reassurance in life.
If the dog attacks you, it means you need to protect yourself. You may have let people in, who do not have the right intentions for you, and it is time to get rid of them.