Write down a git command to check difference between two commits

Technology CommunityCategory: GitWrite down a git command to check difference between two commits
VietMX Staff asked 3 years ago

git diff allows you to check the differences between the branches or commits. If you type it out automatically, you can checkout the differences between your last commit and the current changes that you have.

git diff <branch_or_commit_name> <second_branch_or_commit>