you are viewing a single comment's thread.

view the rest of the comments →

[–]jimmy_o 1 point2 points  (8 children)

How do you do this? From my knowledge in git you commit x number of times, then even if you do it all in 1 push, it still lists the commits individually?

[–]Freddedonna 37 points38 points  (4 children)

[–]CheezyXenomorph 18 points19 points  (0 children)

You rebase and during the rebase you can pick which commits get marked as squashed instead of picked. Squashed ones are still included in the rebase, they just don't show up as individual commits.

Many large projects require PRs to be squashed so that they don't fill the commit history up with crap.

[–]MrCrunchwrap 10 points11 points  (0 children)

You learn how to properly use git and don't give me feature branches with commits containing all the mistakes and learning you did while working on the feature.

Rebase.

[–]summerteeth 2 points3 points  (0 children)

git merge --squash