Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You'll still get interleaved commits. If I work on a branch for a week, committing daily and merging daily from main, when I merge to main, git log will show one commit of mine, then 3 from someone else, then another of mine, etc. The real history of the main branch is that all my commits went in at the same time, after seven days, even if some of them were much older. Rebase tells the real story in this case, merge does not.




  git log --oneline --graph --first-parent



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: