Skip to main content

Command Palette

Search for a command to run...

How to unstage staged files on git

Updated
1 min read

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

More from this blog

Theodore Karropoulos's Blog

9 posts

how to unstage staged files in git