Jesus refers to fig trees several times.
~Matthew 21.18-22 and Mark 11.12-14 and 20-25 record his cursing of the tree which was out in full leaf, but bearing no fruit.
~Luke 13.6-9 Parable of the Barren Fig Tree Then Jesus told this story: “A man planted a fig tree in his garden and came again and again to see if there was any fruit on it, but he was always disappointed. Finally, he said to his gardener, ‘I’ve waited three years, and there hasn’t been a single fig! Cut it down. It’s just taking up space in the garden.’
“The gardener answered, ‘Sir, give it one more chance. Leave it another year, and I’ll give it special attention and plenty of fertilizer. If we get figs next year, fine. If not, then you can cut it down.’”
Both of these emphasize the importance of fulfilling purpose, in the case of the fig tree, bearing fruit.
~Mark 13.28 “Now learn a lesson from the fig tree. When its branches bud and its leaves begin to sprout, you know that summer is near."
~Luke 21.28-30 So when all these things begin to happen, stand and look up, for your salvation is near!” Then he gave them this illustration: “Notice the fig tree, or any other tree. When the leaves come out, you know without being told that summer is near."
Here the tree illustrates how to interpret signs.
In other gospel references, Zacchaeus climbs a fig tree to see Jesus (Luke 19) and Nathaniel is impressed that Jesus saw him under a fig tree in John 1.
~Matthew 7.16 You can identify them by their fruit, that is, by the way they act. Can you pick grapes from thornbushes, or figs from thistles?
~James 3.12 Does a fig tree produce olives, or a grapevine produce figs? No, and you can’t draw fresh water from a salty spring.
I'm guessing that figs were a commonly eaten fruit of the first-century Middle East and so easily understood as metaphors in making these three points. I don't remember that I've ever had a fresh fig, anything beyond Fig Newtons. :-]