Whether or not it's a good idea is subjective, but the Chinese seem to break that rule a lot!
For example, Northeastern Chinese sweet and sour pork (guō bāo ròu) is characterized by an intense ginger flavor .
The Sichuan classic twice cooked pork (huí guō ròu) calls for boiling the pork with ginger.
A common condiment for beef dishes/sauces is black bean garlic paste (蒜蓉豆豉酱) .
Perhaps this saying is associated with a specific Chinese regional cuisine?
cooking.stackexchange.com/users/5600/ESultanik
Whenever I see never I feel uneasy and want to try it anyway :) Beef + garlic works very well.
It's often used in middle eastern and Japanese cuisine for example.
Pork and ginger is a common combination in Chinese cooking.
cooking.stackexchange.com/users/5770/jwenting
I guess its up to your personal preference, there are a lot of beef dishes with garlic and one good example is beef and broccoli also with pork most of the Asian stir fries uses pork and ginger and they do taste great.
cooking.stackexchange.com/users/3249/Raymund
It's a myth - look at the number of steakhouses that serve steaks with garlic butter sauces/dressings.
cooking.stackexchange.com/users/1352/warren
I am surprised seeing this too.
It has been eons since my Dad used to tell me a lot of about NOT using ginger on pork, but garlic on both is not bad.
It's all about ginger and pork having a chemical reaction that is bad on the aspect of the yin/yang balance in the body as my dad explained it.
It releases a certain chemical as well that when your immunity is low, could trigger some conditions adverse to health.
From that info, never use ginger on pork dishes too.
My dad was born in the 30s, so I assume that his wisdom on this emanated from older generations handed down to him as well by a long line of cooks from our family.
Uses of ginger in pork dishes could be regional, or maybe the younger generations making the infamous NorthEastern sweet and sour pork FORGOT that the ginger in that dish wasn't raw when added in cooking but rather already in a commercially available ready-made sauce that that HAS the ginger in it already.
IT IS IN THE SAUCE that was separately made.
NOT cooked through with the PORK.
Cooking the ginger with the pork is what releases what my Dad described as the culprit that needs to be avoided.
Just to clarify.
Hope
I made some sense.
This to me, as my Father passed on to me, I will retain in my future cooking wisdom. :-)
cooking.stackexchange.com/users/58341/Jeff Uy
The pork marinade we use in our family even combines the two: one part each of sesame oil, soy sauce and sherry, equal amounts of ginger&garlic.
cooking.stackexchange.com/users/5185/MSalters
"You should use garlic with pork and  ginger with beef and never vice versa."   This is coming from my dad who says that fact has been handed down from generations and generations of Chinese cooking.  He says if I mix it (i.e. cook pork with ginger and beef with garlic), there will be an unpleasant taste.  Maybe he's just exaggerating, I'm not sure.  Do you think there is any truth to this saying?
Is this a true? You should use garlic with pork and ginger with beef and never vice versa?
cooking.stackexchange.com
<beef><pork><garlic><ginger><cooking-myth>
cooking.stackexchange.com/questions/14249
cooking.stackexchange.com/users/5643/O_O
Ginger and pork are sometimes considered to have a bad reaction on the yin/yang balance, but this rule is often broken both in China and abroad. Beef is often eaten with black bean garlic paste, and Northeastern Chinese sweet and sour pork (guō bāo ròu) is  characterized by an intense ginger flavur. While there are many exceptions to this rule, some Chinese people believe that chemical reactions in the food will have a negative effect on the yin/yang.
There seem to be many exceptions to this rule. It's to do with a chemical reaction on the yin/yang of the foods.