3days since the last Git and AI fuck-up

How to remove staged changes from git?

Mandeep Singhfrom the archive

shell
git reset

In case you want to remove only a specific file(s), then you can mention the name of the file(s) like this:

shell
# To remove a single file
git reset filename.ext

# You can also remove bunch of files using simple rejex expressions
git reset content/*.png
Originally Posted On: Agaric

Tagged solving-mistories, git-reset