Since IntelliJ IDEA 14 update it’s possible to enable a checkbox for exactly that, you first have to enable “Allow force push” in Settings->Version Control->Git.
2018 Update: To allow force push on master branch, look for “protected branches” in Git settings -> Then delete value “master”.