Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • In the Version Control window, switch to the Log tab.
  • Select the two branches you want to compare by holding Ctrl (or Cmd on macOS) and clicking the branch names.
  • Right-click and select Compare with <BRANCH>or just Compare if you want to compare two branches other than the one you are currently on.

...

  • To compare an individual file across branches, find that file in the Project view.
  • Right-click the file and choose Git > Compare with Branch....
  • Select the other branch you want to compare it with. PyCharm will open a diff viewer showing changes side by side.
  • This diff viewer allows you to see line-by-line differences in the file between the two branches.
  • You can pick changes from the code using the >> in every single difference

...