Back to Developer Roadmap

Between Branches

src/data/roadmaps/git-github/content/between-branches@O-zoAWkDvyn7B8_TmY257.md

4.0707 B
Original Source

Between Branches

When comparing the differences between two branches, such as a feature branch and its upstream parent branch, use git diff <branch1>..<branch2>. This command displays the changes made on the feature branch relative to the parent branch. It's useful for reviewing the impact of new features or changes before merging them into your mainline.

Visit the following resources to learn more: