San Francisco is a big biking town and is very much not flat. You can get around on a bike in a hilly city, it's a combination of learning slightly longer but flatter routes to where you're going and getting used to the hills as you get in better biking shape.