I made changes to some of my files in my local repo, and then I did git add -A
which I think added too many files to the staging area. How can I delete all the files from the staging area?
After I do that, I'll just manually do git add "filename"
.
git status
already tells you exactly what to do if you want to unstage files. – Michael Foukarakisgit add -p
orgit add --patch
(they're the same). That flag allows you to interactively select which files or individual changes you want to stage -- you can then get a lot more finely grained with what work you include in the commit. – Gabe