Scenario:
- delete file.txt file, commitA and push
- restore file.txt via git checkout commitA~1 file.txt , commitB and push
I want to delete the file again by invoking commitA by running the following checkout command:
git checkout commitA --file.txt
but I get
error: pathspec 'file.txt' did not match any file(s) known to git
Is there a way to re-delete the file? I could just delete the file add it and commit but I am wondering if I can keep the history clean by reusing an older commit?!
Edit: I removed the Source from the file path to avoid confusions