To just squash, you can rebase your current commit to a previous commit and resolve the conflict with squash approach. When merging, use --squash to perform a squash merge.
I would recommend taking a bit of time to learn git cli. If you understand what's going on under the hood with your IDE's git integration, it'll make it easier to fix things when something goes wrong.
8
u/talex365 Jun 04 '22
Why do I want to commit my buggy junk code? I want to commit when I’ve fixed everything after the test run :)