Show what a merge will do before doing it

Bash

Lists the commits and the files a merge would bring in, so a surprise is less likely.

git log --oneline HEAD..feature-branch
git diff --stat HEAD...feature-branch

More in Git

Random picks