In a baking dish, spread out the sliced onions on the bottom. Place the pork knuckles in the dish and rub a garlic clove and half a tablespoon of salt on the pork. Throw in the garlic with the onion.
Pour the beer around the meat and place the dish in the oven for 3 hours, checking the moisture of the meat regularly (abut every hour) and top up the liquid if necessary. You'll know they're ready once the skin has turned crispy and brown and falls off the bone.
Serve one pork knuckle per person, with a side of delicious warm sauerkraut.