Sale of 2nd home when married filing separately?

I bought a home before I was married that I intended to fix up and live in, but instead I fixed it up over 2+ years and then sold it. It was never my primary residence.

 

I got married during those two years, and my income is much less than my husband's. I'm wondering if I can minimize the capital gains tax on what I made from the home if we file "married filing separately," and I'm the only one who reports the sale of the home on my taxes. The house was in my name only.