GoLand 2020.3 Help

Add files to a local Mercurial repository

After a Mercurial repository for a project is initialized, you need to add the project data to it:

  • If you have specified Mercurial as the version control system for your project in the Settings dialog, GoLand suggests to put each new file under Mercurial control during the file creation.

  • You can add all unversioned files to Mercurial control or select files to add.

To add all currently unversioned files to Mercurial control

  1. Open the Commit tool window Alt+0

  2. Navigate to the Unversioned Files node and choose Add to VCS from the context menu.

To add specific file(s) to a local Mercurial repository, do one of the following:

  • Switch to the Commit tool window Alt+0, expand the Unversioned Files node, and select the files to be added. From the context menu, choose Add to VCS.

  • Switch to the Project tool window and select the files to be added. From the context menu, choose Mercurial | Add to VCS.

Last modified: 08 March 2021