Getting the Character Out of the Tree in Zelda: The Wind Waker

If you mean the girl stuck in the tree near the start of the game, the solution is simple—just walk up to her and talk.

If you're after the boy (one of the Killer Bees for the Hide and Seek sidequest), you'll need to slide-dash into the tree. You can do this by rolling toward it and colliding with the trunk.