I'm in the process of preparing a pull request and the one of the points was to keep some legacy files around that removed. This happened a couple commits back from the current HEAD
. Following the process to cherry-pick a single file from a commit:
git checkout 1234567 -- src/Reporters/DeletedFile.h src/Reporters/DeletedFile.cpp
I get the following error message from Git Bash:
error: pathspec 'src/Reporters/DeletedFile.h' did not match any file(s) known to git
error: pathspec 'src/Reporters/DeletedFile.cpp' did not match any file(s) known to git
Checking with show
indicates that the files were deleted in hash 1234567 and using the full hash also results in the same error. What could be causing this error?