git show h3223459:./data/path/to/fullfile.csv
上面的命令有效。但是,当我尝试使用通配符时,它会抛出一条错误消息。
git show h3223459:./data/path/to/*file.csv fatal: Path 'data/path/to/*file.csv' does not exist in 'h3223459'
有没有办法在git show中传递通配符。我在git结账时尝试了通配符,在那里效果很好。
git show 接受 gitrevisions ,不包括路径规范。它确实允许路径,如图所示 here 在你成功的指挥下。
git show
fatal 错误,我明白了 吉特秀
fatal
吉特秀
$ git show 'b5101f929789889c2e536d915698f58d5c5c6b7a:*kefile' $ git show 'b5101f929789889c2e536d915698f58d5c5c6b7a:./*kefile'
这个错误似乎更好。)
我在git结账时尝试了通配符。。。
git checkout 命令接受 路径规范 as documented not-quite-so-well here 并在 the gitglossary . 默认情况下,它们确实接受通配符匹配。
git checkout