Labs ICT
⭐ Pro Login

Add Files

Adding files is how you move changes from the working directory to the staging area. This two-step process helps you control exactly what gets committed. You can stage all files at once or be selective about which specific files to include.

Staging Changes

`git add .` stages all modified files, `git add filename` works for specific files. The staging area is your "pending changes" zoneβ€”this gives you a chance to review and organize before making a commit. Any file in the staging area will become part of your next commit.

$ git status
$ git add .
$ git add README.md
my-file.txt
$ git status
Try it Yourself β†’

πŸ§ͺ Quick Quiz

What command stages all changes in the working directory for the next commit?