"tad viddhi pranipatena
upadeksyanti te jnanam
jnaninas tattva-darshinah" (Bhagwat Gita: Chapter Four verse 34)
"Sri Krishna said: Just try to learn the truth by approaching a spiritual master. Inquire from him submissively and render service unto him. The self-realized souls can impart knowledge unto you because they have seen the truth."
"api ced asi papebhyah
vrjinam santarisyasi" (Bhagwat Gita: Chapter Four verse 36)
"Sri Krishna said: Even if you are considered to be the most sinful of all sinners, when you are situated in the boat of transcendental knowledge you will be able to cross over the ocean of miseries."
"yathaidhamsi samiddho ’gnir
bhasma-sat kurute ’rjuna
bhasma-sat kurute tatha" (Bhagwat Gita: Chapter Four verse 37)
"Sri Krishna said: As a blazing fire turns firewood to ashes, O Arjuna, so does the fire of knowledge burn to ashes all sins & reactions to material activities."
One other way to get rid of all your sins is to take refuge in God through "Devotion". In Bhagwat Gita, God assures his disciple Arjuna in many ways & asks him to take refuge in Him & says that He shall emancipate him of sin in all ways, shall rescue him in his life always. Many times we think that we have done many sins in life & how God shall accept us, but God makes very clear in Bhagwat Gita that once a person become devoted to Him, He does not considers that person a sinner, rather God considers that person to be a Saint as he has taken the right decision in his life to become devoted to God.
Api chet su-duracharo
bhajate maam ananya-bhak
sadhurev sa mantavya
samyag vyvasito hi sah' (Gita: Chapter IX verse 30 )
'Even if the vilest sinner worships Me with full devotion, he should be considered a noble soul or saint; as he has taken the right step by worshipping me.'
'kshipram bhavti dharmatma
na me bhaktah pranashyati' (Gita: Chapter IX verse 31)
'He speedily becomes virtuous and secures lasting peace. O son of Kunti, know it for certain that My devotee never falls.'
Through above verse 31, God is telling Arjuna that such a sinful person after becoming His devotee becomes a person of good virtues and always remain in peace & such a peace is not temporary but is ever lasting. God is assuring the son of Kunti ( another name of Arjuna, his disciple) that his devotee never falls again in life as He always protect him. So let's all worship the God always so that He can protect us always.
'man-mna bhav mad-bhakto
madhyaji maam namaskuru
atmanam mat-parayanah' (Gita: Chapter IX verse 34)
'Fix your mind on Me, be devoted to me, worship Me & offer obeisance's to Me. In this way, linking to Me, you shall surely come to Me.'
Through above verse 34, God is asking Arjuna to fix his mind on God as after worshipping Him & paying obeisance's to God, he shall automatically come to Him. We should also follow the same path & let's become devoted to him by praying Him daily. God is very clear that once a person comes in God's refuge, then all his problems are solved & God becomes his protector in this life & life beyond.
Jai Shri Krishna