Linux Hint published a tutorial showing you how to compare two GIT branches.
GIT Compare Two Branches
This covered ways of comparing branches on Git to see their difference in commits, HEAD, and files. Git is an excellent and easy-to-use version control system.
GIT Compare Two Branches