Nutmeg, cinnamon, and allspice are decent ginger substitutes in stir-fry dishes. When using them to replace ginger, use a 1:1 ratio and only add more if you are not satisfied with the taste.