Complete the command to discard changes in a single file named file.txt.
git [1] file.txtThe git restore command discards changes in the working directory for the specified file.
Complete the command to discard all local changes in the current directory.
git [1] .Using git restore . discards all changes in the current directory and its subdirectories.
Fix the error in the command to discard changes in app.js.
git [1] -- app.js-- which can cause errors if file names look like options.The correct command uses git restore -- app.js to discard changes in app.js. The -- separates options from file names.
Fill both blanks to discard changes in index.html.
git [1] [2]
The command git restore index.html discards changes in index.html. To discard multiple files, run the command separately or list files after restore.
Fill all three blanks to discard changes in main.py and README.md.
git [1] [2] [3]
The command git restore main.py README.md discards changes in those files. To discard changes in multiple files, list them after restore.