Do not try to touch or pat the dog, as this can be interpreted as aggressive. Never reach out to touch a dog you do not know.
If you know the dog’s name, try saying its name a few times calmly and slowly. This will let it know you are not a threat.
If you are not comfortable letting the dog sniff you, move away from the dog safely and slowly so neither of you are in danger.
If you know the dog’s name, trying saying its name a few times so it knows you are a friend.
Keep the dog in your line of sight as you move away so you are aware of its movements.
Do not try to pick up the dog or child, as this can be seen as aggressive by the approaching dog.
You can also use a car door as a shield if you are by your car when the dog attacks.