To commit your changes to a Git repository, follow these steps:
Right-click the project in the Navigator panel and select Git > Commit from the context menu.
— or —
Select Project > Git > Commit from the main menu.
This action will automatically save the project.
Note: If the command is disabled, make sure you enabled integration with Git.
The Git Commit dialog will appear:
The dialog lists the changed files. To learn what each file is used for, see Composite Project Structure.
In the dialog:
Select the changes to commit.
To view the difference between file versions, click the View option in the Details column. This will open a window where you can see the difference:
Enter a commit message.
After you commit the changes to a local Git repository, you may want to push the changes to a remote repository.