News for hackers. Stuff that matters.
Re:Idiot Proof Git by seba_dos1 on Wednesday November 09, 2022 @05:52PM (#33539288)
> Squash commit will squash everything done into a single commit, so reverting it is easier.

No, it's just as easy, while needlessly throwing away other useful information.

> If you did not squash, you need to cherry-pick all commits from the merge.

...or use a single `git rebase` invocation.

> If the feature branch was not rebased

Linear workflows with merge commits usually require feature branches to be rebased on merge (just like squashes, just without the actual squashing), so that's not a problem at all.

There are no comments on this comment yet.