Artichoke Bread

1 (14 ounce) can artichoke hearts, drained and chopped 1 cup freshly grated Parmesan cheese 1 cup mayonnaise (such as Hellman’s®) 1 clove garlic, finely chopped 1 loaf French bread, cut lengthwise in half