Something in between could be addressing the drainage behind which could help prevent further leaning.
How to fix a leaning concrete wall.
Using anchors drill a one inch hole unless otherwise specified by the wall anchor manufacturer in your retaining wall.
To fix the mortar carefully chisel out mortar to a point of a little over 1 2 the depth of the brick.
Make sure that the rod connects to the anchors that are installed within the soil.
If the wall has moved significantly the soil outside the wall will have to be excavated and the foundation wall straightened or in the worst cases replaced altogether.
Screw an anchor rod through the hole.
So a totally proper repair would be to remove the whole thing and start over.
Install the wall plate and tighten the anchor rod.
When this occurs the homeowner has two choices.
The repair methods for a leaning foundation wall depend on the amount that the wall has moved inward.
Either demolish the wall.
Retaining wall repair options whether a retaining wall is built of stone block concrete or wood it can begin to lean.
Straightening the wall will require some engineering and is beyond strangers on the internet.
This mortar is typically one of the first things to show wear on a well made wall.
Wall anchors can be a long lasting solution to strengthen retaining walls and actually pull them back as close to their original position as possible.