Due to some reasons, I re-combined some previously splited Git repositories. (Using git-stitch-repo) Some commits are made across several sub-projects. And after re-combined, they are shown in duplicated entries.

I want to merge these duplicated commits in sequence, like uniq does.

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

If your commits are duplicate within the same branch, you can try a git rebase --interactive to trim/squash them (But it is not an automatic way to remove them, like some kind of uniq command)

link|improve this answer
Can I prepare an edit list by hand, and then send to rebase -i? – Xiè Jìléi Jan 8 '11 at 9:28
@谢继雷: I don't think so, but it could be the base for an interesting question of its own ;) – VonC Jan 8 '11 at 9:33
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.