A man shouted slurs as he hit a bartender at one of the city’s oldest gay pubs, authorities said yesterday, in the latest incident in a string of gay-bashing .

The bartender was struck Oct. 11 at Julius, the Greenwich Village tavern where a 1966 “sip-in” marked an early moment in the gay-rights movement, prosecutors said.

The victim was trying to defuse a dispute between Frederick Giunta and another customer, police said. Giunta hit the bartender in the face, disparaged his race and used an anti-gay epithet, authorities said. The victim is black.

Giunta, 45, was held in lieu of $25,000 bail on charges of assault as a hate crime and attempted robbery. The second rap stems from allegations that he tried to rob a man earlier that evening.