close
Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

How do I squash my last N commits together?

How do I squash my last N commits together into one commit?

Answer*

Draft saved
Draft discarded
Cancel
2
  • 4
    would be nice to see the final result, e.g., git log Commented Dec 3, 2018 at 19:44
  • @Axalix Did you remove all your lines? That's how you lose your commits. Commented Jun 22, 2019 at 19:53