johan johan - 7 months ago 62
Git Question

PhpStorm Re-commit and push after accidental commit

With PhpStorm I know that if you hit Ctrl+K and click commit, the IDE does only a local commit and the changes are not showed on GitHub.

If I accidentally committed, but actually wanted to commit and push to GitHub how do I go back and do that from my local commit?

Also is there no way to default a commit and push, the tiny drop-down icon is easy to miss click?

Answer Source

You can do it by using Ctrl+Shift+K. This will open up the Push menu.

You can find this by going to the VCS menu, going to the Git section and looking at the options in there.