I recall developing the habit of nail biting. In an effort to cure this bad habit my dad painted stuff on my finger nails that tasted really, really bad. No, it just meant that when I practised my nail biting habit I did it with a bad taste. I replaced the bad habit with a new one - nail manicure. Habits are formed through conditioning where behaviour is learnt through a process of reinforcement.
Reinforcement is associated with pleasure, comfort, rewards, or an end to discomfort.
God is at work in us by his Spirit. Spiritual growth occurs as our relationship with God develops - it happened in the context of a friendship with creator and creature. It takes time to develop a relationship. Spiritual growth is a process that includes growing in knowledge and holiness. With each habit for spiritual growth you will learn a tool to help your actions become habits.