The smell will attract some fish, it will repulse others.
For a new fish thats not eating I always suggest newly hatched brine shrimp, its always worked for me
There is a myth re garlic.
Probably a lot of critics but that's fine .
The actual attachment re garlic to feeding fussy fish isn't the garlic at all, would eat raw garlic?
When you break or crush a garlic clove there is a chemical that is released called Allicin. This is what attracts the fish to eat the laced food. That pungent aroma that sticks on your skin is only present for a short period of time, That is the attraction re feeding.
Soak some frozen food for 10/15 minutes in a little ro water with a crushed garlic clove (that is separated from the actual food you are going to feed) ie crushed garlic in the jug and frozen food in a micron net etc. Only feed the the food. Fish won't actually eat the garlic and it would just decay in the display