Jack by the hedge, otherwise known as garlic mustard. It does indeed smell faintly of garlic, with this apparently also true of the taste. It’s a hedgerow plant which some people include in salads (pick the leaves before the plant flowers).
It’s also an important food plant for some butterflies, especially orange tips and green-veined whites.