Complete the command to add all files in the current directory to the staging area.
git add [1]git add -A which is valid but not the simplest here.* which may not work as expected in all shells.The dot . means the current directory, so git add . stages all files here.
Complete the command to add all files with the .txt extension in the current directory.
git add [1]*.text or *.doc.The pattern *.txt matches all files ending with .txt.
Fix the error in the command to add all files inside the src directory.
git add [1]\ which is for Windows paths.src without slash which may work but is less explicit.Using src/ correctly specifies the directory to add all files inside it.
Fill both blanks to add all .js files in the app directory and its subdirectories.
git add [1]/[2]
app/**/*.js as one token which is invalid here.*.js which matches only files in the top directory.app is the directory, and **/*.js matches all .js files recursively inside it.
Fill all three blanks to add all .css files in the styles directory, excluding files in styles/temp.
git add [1]/[2] && git reset [3]/temp/*.css
git add only.First, add all .css files recursively in styles with **/*.css. Then reset (unstage) files in styles/temp to exclude them.