Flowers like marigolds also deter rabbits and deer some.
Since deer don’t like strong scents, I like to plant marigolds and dill in the garden.
I ran a bar of soap all along the top rail of our fence...and put chips along the edge of the garden.