The narrated Hadeeth says: The person who sincerely repents his sins is like a person who has no sins. التائب من الذنب كمن لا ذنب له
It depends on the degree of the sincerity in the repentance and the firm decision not to commit that sin again.
Some very sincere believers who committed sinful acts in their past, then repented and became very pious, not only get forgiveness, but their sins are transferred into good deeds, as we read in Quran (Exceot those who repent and believe and do good, those whose sinful deeds will be changed by Allah into good deeds, verily Allah forging and merciful) (Al-Forqan:70).
Narrated Hadeeth says: When a believer sincerely repents and become pious, Allah makes people and angels who witnessed his previous sins, gorges his sins.