Combining multiple commits before pushing in Git [duplicate]

I have a bunch of commits on my local repository which are thematically similar. I’d like to combine them into a single commit before pushing up to a remote. How do I do it? I think rebase does this, but I can’t make sense of the docs.

8 Answers
8

Leave a Comment