In your repository you have two files—file-1 and file-2—with their initial committed contents. After modifying both files, you staged the changes. You want to discard the changes for file-1 completely so that it is restored to the state from the last commit. Then, you want to unstage file-2 so that its modifications remain only in the working tree.
Note: If you try to restore file-1 while it is still staged, Git will copy the staged (modified) content to the working tree rather than restoring it from the last commit. Therefore, make sure to unstage file-1 first.
Write the Git command(s) below line by line to achieve this.