I ended up using this command unduly, and added many files that I should not, wanted to go back to the previous state, the command git reset HEAD <file>
returns only one file, and how many are unfeasible to use it. I added the directory name to the .gitignore
file, but when I run the git status
command, all the files are listed in the commit phase, I did not commit because I believe I commit and then do push
, those files will be loaded (maybe it's wrong). I saw in an SO-pt link that the git reset HEAD *
command would return all changes to the untracked
state, the files that returned to that state were exactly the .gitignore
file and not the files that I had previously added. How do I get back?