How do I revert multiple (but not all) files to a past commit?
I need to check in a bunch of files (about 40-50) for a specific commit. However, I don't want to return all files. How do I do this without having to check every file for every file I need to check back? All files that I need to get back are located under one folder.
+3
manabreak
source
to share
1 answer
I've already found a solution.
git checkout master~1 ./FolderIWantToRevert ./AnotherFolderToRevert
Note that I wanted to go back to the previous commit, so there ~1
after master
.
+4
manabreak
source
to share