Gilford was in a crowd of people coming out of a nightclub in the 1800 block of Post Street at about 1:45 a.m. when the shooting occurred, San Francisco police Sgt. Danielle Newman said.
Gilford was shot as he stood on the sidewalk, Newman said. He was pronounced dead at the scene.
No information about a possible suspect was immediately available, Newman said.
Investigators were canvassing the neighborhood on Sunday in a search for witnesses.
Anyone with information about the shooting is asked to call the Police Department's anonymous tip line at (415) 575-4444 or to send a tip by text message to TIP411 with "SFPD" in the message.