Complete the command to check the status of your working directory.
git [1]The git status command shows if your working directory is clean or dirty by listing changes.
Complete the command to discard changes in a single file and restore it to the last committed state.
git checkout -- [1]Using git checkout -- filename discards changes in that file, making the working directory clean for it.
Fix the error in the command to stage all changed files for commit.
git [1] .The git add . command stages all changes in the current directory, preparing them for commit.
Fill the blank to create a command that shows only the names of files that have changed but are not staged.
git diff [1]The git diff --name-only command shows only the names of files that have unstaged changes (changed but not staged).
Fill all three blanks to create a command that resets the index and working directory to the last commit, discarding all changes.
git reset --[1] && git checkout [2] -- [3]
git reset --hard resets the index and working directory. git checkout HEAD -- . restores all files to last commit state, cleaning the working directory.