The “git restore –staged
When you make changes to a file in your local repository, Git marks those changes as “unstaged”. If you want to include those changes in your next commit, you need to add them to the staging area using the “git add” command. However, if you accidentally add a file or make unintended changes, you can use the “git restore –staged
This command will not modify the working directory or discard any of your changes; it only removes the specified file(s) from the staging area. The changes you made will still be present in your local repository and can be modified further or committed at a later time.