Money is not evil. You need it to eat, to live under a roof, and to care for the people you love. Earning it honestly and using it well is part of a good life. The tradition does not ask you to be poor.
Greed is something else. It is the self that is never full. It wants more than it needs, and when it gets more, the amount it needs goes up. It hoards. It counts. It cannot give without calculating.
Underneath greed there is usually fear: of not having enough, of being left with nothing, of depending on anyone. The books describe the miser who hides his money out of fear and so lives like a beggar. Many people with plenty live exactly like that, on the inside.
Greed is not only about money. A person can be greedy for attention, for knowledge, for experiences, even for spiritual progress. The shape is the same: more, and never enough.
You cannot cure it with a promise. Telling yourself that you will no longer be greedy leaves the self untouched. It only learns to speak more quietly. The way out is the same as for every self: see it at work, understand what it fears, and let it go.
A simple place to start is the difference between what you need and what you want.