10
jfdev
7y

For what are commit graphs are actually good for? My graph seems a little bit corrupted :D

Comments
  • 4
    git is a bit strange with merges and the resulting graph, which leads to these 'overtaking' lines.
    Rebase instead of merge avoids this and keeps the graph clean.

    What do you think is wrong with your graph?

    Wanna see a part of one of my projects? Doesn't look better:
  • 3
    @ddephor Looks like a Underground plan xD
  • 1
    Which is more recommended rebase or merge?
  • 3
    @gitpush depends. I rather use merge because it helps keeping track of what happens during development of single feature. With rebase its harder to track given commits if you have to work with the history.
    If you do a pull request, always do a rebase. Get their code and treat yours as 'written after their last commit'. Its easier to the maintainer.
  • 0
    @mt3o thanks fo explaining , looks fair for the maintainer part. I'll dig deeper 😀
  • 0
Add Comment