search

Home  >  Q&A  >  body text

How to organize the interleaved history of Git repositories

The current submission history of the Git warehouse is as shown above. How to sort out these interleaved histories?

巴扎黑巴扎黑2803 days ago624

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-02 09:47:43

    With such a jagged submission history in this picture, I don’t have any good way to make it tidier. In fact, this is okay, because this submission history truly reflects the entire work process of your warehouse.
    If you want to get a clean commit history, I have a suggestion, which is to use the git rebase变基操作,而不是git mergemerge operation when integrating branches. Of course, this suggestion is just to avoid a messy commit history like the one in the picture.
    For the use of rebase operations, you can find detailed tutorials in the Progit book.

    reply
    0
  • Cancelreply