I'm new to Git and here's my problem: I accidentally added to commit a folder with files essential to my project but unchanged (say, Downloaded/). I didn't track this folder before, it just stayed untouched from commit to commit. Now, after this last commit, when I make a checkout to some previous commit, the Downloaded/ folder disappears from a file manager.
What is the correct way to revert that change and bring the folder back? I don't want to track it, still, maybe I should?
I tried this:
git reset HEAD
and this:
git update-index --assume-unchanged Downloaded/
I can solve this 'manually', as I have a backup of the folder. Still, for learning reasons, I prefer to do it in git.
I'll appreciate any help!