简体   繁体   中英

Is there a way to see a linear git commit history irrespective of branches?

A large number of branches makes the commit history a bit difficult to understand.

What is the best procedure to committing so that a look at git commit history tells the most about the dev process?

Please try git log --first-parent . You can look this page for more details.

In my opinion, it is good to "rebase" in order to make the history cleaner to understand. Here's is more information about how rebase works.

git rebase basics

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM