Untracked Files

When you create a new file, Git doesn't track it until you add it manually.

git status

New files will appear under Untracked files in red.

Track a New File

Use git add to start tracking a new file:

git add filename.txt

Track All New Files

You can add all new files at once with:

git add .

Check Status After Adding

git status

Now the file will appear under Changes to be committed in green.

Commit New Files

Once added, commit the files with a message:

git commit -m "Add new file"