Viewing Difference Between Files from Command Line
You can use JetBrains Rider as a command line tool for viewing differences between files.
In the command line, run the
diffcommand using the following syntax:<JetBrains Rider> diff path1 path2
The selected files will be opened in the Differences viewer for files.
The command options are as follows:
| || |
The platform-specific JetBrains Rider launcher.
On macOS and Linux, it is recommended to use the command-line launcher created during the JetBrains Rider installation, or create one manually by selecting on the JetBrains Rider main menu. Refer to Enable a command-line launcher on macOS/Linux for details.
The full path to the local copy of the file.
The full path to the repository version copy of the file.
- rider64.exe diff path1 path2
- rider64.exe diff C:\MyProject\Readme.md C:\MyProject\Readme.md.bak
- rider diff path1 path2
- rider diff ~/MyProject/Readme.md ~/MyProject/Readme.md.bak