I'm using IntelliJ for a project after some time. I committed time ago something (but not pushed them), and now I would like to commit something else, but when I go on the tab Git -> Push... I found a list of unpushed commits that I don't want to push anymore. How can I "abort" those commits, to commit my new stuff?
Asked
Active
Viewed 129 times
0
-
Does this answer your question? [How can I undo pushed commits using git?](https://stackoverflow.com/questions/22682870/how-can-i-undo-pushed-commits-using-git) – Stultuske Aug 25 '22 at 11:09
-
this is purely git. Your preference of ide is not relevant for this. – Stultuske Aug 25 '22 at 11:09
-
@Stultuske sadly not because my commits are still not pushed, they're just in the push queue – JackNaka Aug 25 '22 at 12:07
-
ok, then it's this one: https://stackoverflow.com/questions/3197413/how-do-i-delete-unpushed-git-commits – Stultuske Aug 25 '22 at 12:08
-
@Stultuske It doesn't work, if I go in the tab Git -> Push I still have the list of unpunshed commits that I don't want – JackNaka Aug 25 '22 at 13:32
-
@Stultuske If the OP is trying to find out how to do this in IntelliJ, it is not purely about Git, but about the GUI of IntelliJ. – Mark Rotteveel Aug 25 '22 at 15:48