Skip to content

Duplicate commits, clean up commit history #23930

Discussion options

You must be logged in to vote

In principle, this can all be done with an interactive rebase: You can delete, reorder, or change commits. You can find a detailed description here: Git - Rewriting History

Note that depending on the details messing with the order of commits can lead to conflicts, e.g. if you delete a duplicate commit and then one of the commits after doesn’t fit right.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants