Unstage a file

How to unstage a file that has been added by mistake

git restore --stage file

Last updated