Source
git reset --soft HEAD~ # keeps the files staged
git restore --staged <files...> # unstages the files
git restore <files...> # restores the files to before the commit
Source
git reset --soft HEAD~ # keeps the files staged
git restore --staged <files...> # unstages the files
git restore <files...> # restores the files to before the commit