Read Galatians 2:2 Using Other Translations
And I went up by revelation, and communicated unto them that gospel which I preach among the Gentiles, but privately to them which were of reputation, lest by any means I should run, or had run, in vain.
I went up because of a revelation and set before them (though privately before those who seemed influential) the gospel that I proclaim among the Gentiles, in order to make sure I was not running or had not run in vain.
I went there because God revealed to me that I should go. While I was there I met privately with those considered to be leaders of the church and shared with them the message I had been preaching to the Gentiles. I wanted to make sure that we were in agreement, for fear that all my efforts had been wasted and I was running the race for nothing.