Usually, you can try with treats, get some in your hands, and he will smell you and start eating the treats. It means you are friends again. Food is always the best answer. Next, you can try petting him, but not all cats like petting when upset.