Force push to git repository

Is there a way to force push to a git repository using Pycharm?

This seems to be available for Mercurial, but I did not find any information about how to do this with git.
0
3 comments
Avatar
Permanently deleted user
VCS menu -> Git -> Push.  (Ctrl-Shift-K on Windows.)
0
Avatar
Permanently deleted user
Well that is push, alright, but if the push gets rejected I get a dialog only offering me to merge or rebase, not to force the push. Or am I missing something?
0
Avatar
Permanently deleted user
Sorry, clearly I missed the 'force' part. As far as I can tell PyCharm doesn't allow you to do this. Maybe because it's a bit dangerous, since it can cause the remote to lose commits. You could always do it from the command line of course.
0

Please sign in to leave a comment.