Exercise the heck out of it. A well exercised dog is a mellow, much easier to manage dog. If it’s doing something you don’t like, have it do something you like instead. In other words, unless they are sleeping dogs have a hard time doing nothing. So give them something to do that will occupy them. For example I used to press peanut butter into the inner recesses of a Kong toy. My lab/rottweiler mix would spend an hour licking it clean. Once they’re taught how to fetch and drop it that usually can go on for hours... Whenever a dog comes up wanting to be petted, make it obey a command such as sit first. This way petting is a reward, not something they can obnoxiously make you do by shoving their nose in your lap. Heel, come, sit, lie down, stay, and quiet are the ones that matter most. All very easy to teach if you have leash control and know how to teach it correctly with positive reinforcement. Go to obedience classes if you don’t know standard methods. Come is the hardest. Will they come even when off leash and a squirrel or cat suddenly pops up? Acclimation/ tolerance of kids, other dogs, being touched, having their food bowl taken away, etc., are also important. Any smart, working breed dog is usually a breeze to train....as long as you do it right. Positive leash control makes such a huge difference. Works great in the house, too. For example, if having guests over and you need to teach dog not to jump up, bark, or whatever, this is so much easier to accomplish if dog is on leash with proper choke collar (in “p” not “9” configuration so it constricts when you tug it but immediately loosens when you release tension) and heeling at your side. The leash is not just for outside: it’s for whenever you need positive control of your dog, particularly in novel or stressful situations.