Choose the best description of the staging area (index) in Git.
Think about what happens between editing files and saving a commit.
The staging area is like a waiting room where you prepare changes before saving them permanently with a commit.
After modifying a file and adding it to the staging area, what will git status display?
echo 'change' > file.txt git add file.txt git status
Adding a file moves it to the staging area.
After 'git add', the file is staged and 'git status' reports it as ready to be committed.
Select the correct Git command that adds changes of a file to the staging area.
Think about the command that prepares files for commit.
'git add' moves changes to the staging area, preparing them for commit.
Which command stages all changed files in the current directory and subdirectories?
Look for a command that uses a dot to represent current directory.
'git add .' stages all changes in the current folder and below.
You edited several files but after running git commit, some changes are missing in the commit. What is the most likely reason?
Remember how Git tracks changes before committing.
Only changes added to the staging area are included in a commit. Unstaged changes are ignored.