Command
git add
Explanation
git add is used to add file contents to the index. It adds the file contents to the index.
Examples
Stage specific file
git add file.txt
Stage all changes
git add .
Stage changes interactively
git add -p
git add
git add is used to add file contents to the index. It adds the file contents to the index.
Stage specific file
git add file.txt
Stage all changes
git add .
Stage changes interactively
git add -p