#unstage a single file
git rm --cached <filePath>
#unstage all staged files
git reset
# you can use . instead of file_path to unstage all staged files.
git restore --staged <file_path>
#to unstage changes in a file
git restore --staged <file>
#to unstage all changes
git restore --staged .