WuTwo, I've had a number of ganglions n my time, but the most spectacular on my wrist. When it started to impact the feeling in my thumb, it had to go!
I would never strike a hand or foot with anything hard, in an effort to try to burst a ganglion. Unfortunately, both those parts have small bones and very complex structures it can be amazingly east to damage.
If your ganglion is problematic, they can be surgically removed. If your Doc isn't keen to remove, and it's either sizeable or very tense and hard (full), they can draw off the fluid.
Even when excised they can come back, and mine has come back a couple og times, after sugical removal, but these days they tend to "explode" when they grow a bit. Ganglions are generally speaking harmless, unless they're in a troublesome place.
I'm assuming you've had this thing diagnosedd by a Doc?