In the git repository, I have a subdirectory that I want to reset for a certain state in the past (earlier commit). Is it possible to undo all file commits in a specific subdirectory? I think there are no commits that apply changes to files inside this subdirectory and to files located elsewhere at the same time. But would it be nice if you could leave commits on unaffected files that are not in this directory?
I do not need to delete the story. It would be nice to check the previous state, delete the current contents of the subdirectory and copy and fix the old state in its place. But in the end, there may be a more elegant (githonic) way.
source share