Search code examples
gitintellij-ideaphpstormwebstorm

WebStorm/PhpStorm + Git integration: "Same" vs "Latest" repository version


I am new to Git, so sorry if this is a stupid question, but what is the different between the following two options in the git submenu of the context menu that comes up on right clicking a file in WebStorm/PhpStorm (in the Project sidebar)

  • Compare with same repository version
  • Compare with latest repository version

Solution

  • See the Comparing file versions help section.

    • Same version is the version you last synchronized to. Shows current local changes since last update.
    • Comparing to the latest repository version may show additional changes, if the file was changed in the repository since the last update.