59 lines
1.1 KiB
Markdown
59 lines
1.1 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
title: "Add & Commit Changes"
|
|
---
|
|
|
|
# Add & Commit Changes
|
|
|
|
---
|
|
|
|
# Add Changes
|
|
|
|
## Objective
|
|
|
|
Select modified files and place them into the staging area before committing.
|
|
|
|
## Steps
|
|
|
|
1. Modify one or more files in the project.
|
|
|
|

|
|
|
|
2. Open the **Commit** window using one of the following methods:
|
|
1. Click the **Commit** icon in the left toolbar
|
|
2. Or press: **Ctrl + K**
|
|
|
|

|
|
|
|
3. The Commit window opens.
|
|
|
|

|
|
|
|
4. Select the files to stage using the checkboxes.
|
|
5. Ensure the files appear in the **Changes** section.
|
|
|
|

|
|
|
|
---
|
|
|
|
# Commit Changes
|
|
|
|
## Objective
|
|
|
|
Save local changes to the local Git repository.
|
|
|
|
## Steps
|
|
|
|
1. Ensure files are staged.
|
|
2. Enter a commit message in the **Commit Message** field.
|
|
3. Click the **Commit** button.
|
|
|
|

|
|
|
|
4. After a successful commit, you should get the following notification.
|
|
|
|

|
|
|
|
**NOTES:**
|
|
- There is no way to change or verify the committer's name in JetBrains IDEs, you must do so via the command line.
|