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