By mistake, I deleted the directory in my git repository and committed it.
I did
git checkout LONG_SHA_ID
where LONG_SHA_ID is the identifier of the previous commit, and I have the directory back, but I also reverted to previous versions of some files that I fixed in the last commit.
How can I recover a deleted directory with the latest version of other files?
source share