In this question, the answer said that I can use *
to point to files.
This works with git add
, but when I try to use this with git checkout <commit> <file>
I run into a problem.
The git add **/DSManger.java
method mentioned in the second answer doesn't work with git checkout
either.
leafpile (notification *+) Dev $ git add *NewTaskActivity.java
(no problem)
leafpile (notification *+) Dev $ git checkout dbd1 *NewTaskActivity.java
error: pathspec '*NewTaskActivity.java' did not match any file(s) known to git.
Why?