How do you see what changed between two branches, tags or commits?
BeginnerConceptCommits, branches and tags
Answer
Use git diff with two refs and choose the range operator deliberately. Two dots compares the tips directly; three dots compares the second tip against the merge base, which matches what a PR shows.
git diff v1.3.0 v1.4.0 --stat
git diff main...feature
git log --oneline main..feature
More on Commits, branches and tags
How do you write a good commit message?BeginnerWhat is the difference between `git add .`, `git add -A` and `git add -u`?BeginnerHow do you commit only part of the changes in a file?BeginnerHow do you change the last commit message or add a forgotten file?BeginnerWhat is the difference between `git switch`, `git restore` and `git checkout`?BeginnerWhat is the difference between lightweight and annotated tags?Beginner