Intellij 2018.1 force push
已回答
According to https://www.jetbrains.com/help/idea/settings-version-control-git.html there should be a checkbox for enabling the force push "Allow force push" in the Git settings. However, I do not see it in my Intellij, see the screenshot. So, where is it?

请先登录再写评论。
The option has been removed, force push is not always allowed, except for protected branches.
As it often happens, documentation has not yet been updated in this part. I filed a task for the documentation team, thanks for pointing to this
Ok, thank you for the quick reply. Is it disallowed for protected branches only?
Yes, when a protected branch is selected as a target for a push in the Push dialog, Force push option is disabled.
If you push to some other branch, Force Push option is available.
Can you at least make a hover tooltip as to why force push is disabled (hinting that user should check protected branches)? It wasn't the first place I looked in :)
Vojislav
There is a ticket opened on YouTrack:
https://youtrack.jetbrains.com/issue/IDEA-226503
You can leave a comment there with your expectations and vote for a ticket itself.