RubyMine 7.0.0 Web Help

This topic describes how to commit changes to a local Git repository. For information on uploading changes to a remote repository, see Pushing Changes to the Upstream (Git Push).

To commit changes to a local repository
  1. Open the Changes tool window by pressing Alt+9Alt+9Alt+9Alt+9Alt+9Alt+9Alt+9Alt+9Meta+9Command 9Command 9Command 9Command 9 or choosing View | Tool Windows | Changes.
  2. Select the files or folders you want to commit.
  3. Open the Commit Changes dialog box by doing one of the following:
    • On the Changes tool window toolbar, click the Commit Changes button Icon.
    • On the main menu, choose VCS | Commit Changes.
    • On the main menu, choose VCS | Git | Commit File.
    • Press Ctrl+KCtrl+KCtrl+KCtrl+KCtrl+KCtrl+KCtrl+KCtrl+KMeta+KCommand KCommand KCommand KCommand K.
  4. In the Changed Files area, view the files changed since the last commit. Select the check boxes next to the files you want to commit now.
  5. In the Summary area, view statistics on changes made since the last commit.
  6. Add a comment and select the Before Commit options you want RubyMine to perform on the files before committing them to the local repository.

    Tip

    To upload the committed changes to the remote repository immediately, select the Push Changes check box. The changes will be pushed to the pre-configured origin.

  7. In the Git section, configure the following settings:
    • Use the Author drop-down list to specify the person who created the changes to be committed.

      Tip

      This may be necessary when you are committing changes made by another person.

    • If you want to replace already published commit, select the check box Amend commit.
  8. Click Commit.

    Tip

    To save the changes in a text file, click the Create Patch button.

See Also

Concepts:

Procedures:

Reference:

Web Resources: