-
Using the command line commands, for example, cd to change the directory,
switch to the directory where the PyCharm executable file is located (PyCharm installation directory).
The CMD commands, the name of the PyCharm executable, and its default location depend on the operating system you use.
See the lists of CMD commands for Windows
, Mac OS
,
Linux
.
- Specify the location of the PyCharm executable in the Path system environment variable. In this case, you will be able to invoke the PyCharm executable and other PyCharm command from any directory.
- Enable invoking PyCharm operations from the command line.
-
Type the following command at the command line prompt:
where file1 is your local copy, file2 is the repository version, and file3 is the base revision for file1 and file2 (optional).
<PyCharm launcher> diff <path to file1%gt; <path to file2> <path to file3>- If you have specified the location of the PyCharm executable as a Path environment variable, the command will work no matter which directory you are currently in. Otherwise, you need to switch to the PyCharm installation folder first or specify the full path to the executable.
- PyCharm executable is platform-dependent: PyCharm.exe or %product.bat for Windows, PyCharm.sh for Linux.
- Enable invoking PyCharm operations from the command line.
-
Type the following command at the command line prompt:
where file1 is your local copy, file2 is the repository version, file3 is the base revision for file1 and file2, and output is the file to save the merge results in (optional).
<PyCharm launcher> merge <path to file1%gt; <path to file2> <path to file3> <path to output>