How to unstage staged files on git

Sometimes we need to remove a file that we added by mistake from git staging. How to achieve this? Bellow are three life saving commands!

git reset <file>

This command will unstage a single file

git reset <folder name>

This command will unstage a single folder and its contents

git reset

This will unstage all due change