![Forrest logo](/images/logo.png)
git-range-diff:tldr:16a55
git-range-diff: Diff the changes of two individual commits.
$ git range-diff ${commit_1}^! ${commit_2}^!
try on your machine
The command "git range-diff ${commit_1}^! ${commit_2}^!" is used to compare two ranges of commits in a Git repository.
Here's a breakdown of the command:
- "git range-diff" is a Git command that shows differences between two commit ranges.
- "${commit_1}^!" represents the commit range, where ${commit_1} is the starting commit of the first range. The "^!" is an extended commit notation that means excluding the referenced commit itself and only including its parents.
- "${commit_2}^!" represents the commit range, where ${commit_2} is the starting commit of the second range. Again, the "^!" notation is used to exclude the referenced commit itself.
In simple terms, the command compares the changes between two ranges of commits, excluding the starting commits themselves. This can be useful in understanding the differences and changes made between two sets of commits in a Git repository.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.