Reputation: 935
I have a long list of files in my commit that have been pushed up to the repo. I want to reset a set of those files back to a previous commit, but keep the changes I've made to the rest.
For example:
I want to revert the changes to all files (around 500 files) in foldername3 without having to do it manually for each file.
Upvotes: 1
Views: 22
Reputation: 94716
Just one folder, entire, no exceptions? That's easy — checkout the folder from the previous commit:
gt checkout HEAD~ -- foldername3
Upvotes: 2