Is there a way to make git branch commit cleaner?

I have a git commit questions. We are three developers usually working on sprint environment. Attached is a screenshot of our commits look like.

Usually we will create a feature/Jira-1212_ticket_name and work on it. Then commit and do a PR that one of the others will review , then either approve or work more.

Finally all these feature branches get merged to develop branch as you can see.

However, it gets really like a snake. Is there a way to make it cleaner?

在这里输入图像描述


You can use git rebase which is illustrated here: What's the difference between 'git merge' and 'git rebase'?

If you always rebase (eg by git pull --rebase ) you can get a linear history. Some people prefer this, others think it's worse. Up to you.

链接地址: http://www.djcxy.com/p/45110.html

上一篇: git在后台合并了什么?

下一篇: 有没有办法让git分支提交更清洁?