Then when he says, "if you be Christ's, then are you the seed of Abraham, heirs according to the promise," he argues to his main proposition in the following manner: I have said that the promises were made to Abraham and to his seed; but you are of Abraham; therefore, to you pertains the promise made to Abraham about obtaining the inheritance. Then he proves the minor premise: You are the adopted sons of God, because by faith you are united to Christ, Who is the natural Son of God. But Christ is a son of Abraham, as was said above, "as of one, and to thy seed, which is Christ." Therefore, if y...ou are of Christ, i.e., in Christ, "you are the seed of Abraham," i.e., sons, because Christ is his son. And if you are the sons, you are "heirs," i.e., the inheritance belongs to you "according to the promise made to Abraham": "Not they that are the children of the flesh are the children of God; but they that are the children of the promise are accounted for the seed" (Rom 9:8).
Source: Commentary on Galatians