Edit Git project history
warning
Avoid modifying the history for a remote branch with multiple contributors unless absolutely necessary, for example, if you accidentally pushed some sensitive data.
Pushing modifications that rewrite a branch history to the remote repository will be rejected to prevent data loss, so you will have to force push your changes.
You cannot modify the history for protected branches where
push --force
is not allowed (configure protected branches in the Version Control | Git settings page CtrlAlt0S. Note that if a branch is marked as protected on GitHub, PyCharm will automatically mark it as protected when you check it out.Also, you cannot perform actions that modify a branch history for commits that are not contained in the branch currently checked out.
Thanks for your feedback!