All checks were successful
Deploy triz-docs to civital server / build-and-deploy (push) Successful in 1h8m30s
49 lines
794 B
Markdown
49 lines
794 B
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. In the terminal, check the status of the repository: `git status`
|
|
|
|

|
|
|
|
3. Add files to the staging area: `git add .`
|
|
|
|

|
|
|
|
4. Verify that files are staged: `git status`
|
|
|
|

|
|
|
|
---
|
|
|
|
# Commit Changes
|
|
|
|
## Objective
|
|
|
|
Save local changes to the local Git repository.
|
|
|
|
## Steps
|
|
|
|
1. Ensure files are staged.
|
|
2. Enter the commit command with a message: `git commit -m "Your commit message"`
|
|
|
|

|
|
|
|
3. Verify the commit: `git log --oneline`
|
|
|
|

|