I use the git-flow to develop my project

I often have hundreds of commit messages on the feature branch when developing.

But once merge the feature branch into develop branch,

I can only get one merged commit message and lose the hundreds of commit messages.

Is there any way to review the hundreds of committed messages on the feature branch after merged into develop branch.

Or to review the detailed commit messages on the feature branch is useless, so there is no way to review logs after you merge it ?

Can I achieve this on git-tower

enter image description here

有帮助吗?

解决方案

If you want to list only the commits from the merged branch:

git log --pretty=oneline --abbrev-commit mergedBranch ^mainBranch --no-merges

In your case: feature/checkout_layout ^develop.

(Based on "Using Git, show all commits that are in one branch, but not the other(s)").

其他提示

I'm not sure what GUI tool you're using there, but what you're asking is certainly possible with the native Git CLI. For example, this:

git log --date-order --all --graph

will give you what you want, i.e. commits on all branches.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top