Not an expert, but making small steps toward forgiveness is key to scenarios like these.
If you're already bonded with him and he loves you, then he'll forgive you. It takes a little time. Most times when you shout at them or hit them, they know they did something wrong and they'll try to avoid doing it next time. But I don't think they'll suddenly turn on you. Their bond with their owners is very strong.
Well. After I went back from work, as usual he approached me but I think he's still afraid of me, I guess time will heal
Yeah, he will be probing to see if you're still mad at him, so he'll be sort of cautious for a bit. But he will also try to mend the relations too. One of the reasons why dogs are so great. They try to reconcile with you if you are unhappy with them.
Separate names with a comma.