社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

使用通配符来git show

itthrill • 5 年前 • 1393 次点击  

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结账时尝试了通配符,在那里效果很好。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/55896
 
1393 次点击  
文章 [ 1 ]  |  最新文章 5 年前
torek
Reply   •   1 楼
torek    6 年前

git show 接受 gitrevisions ,不包括路径规范。它确实允许路径,如图所示 here 在你成功的指挥下。

fatal 错误,我明白了 吉特秀

$ git show 'b5101f929789889c2e536d915698f58d5c5c6b7a:*kefile'
$ git show 'b5101f929789889c2e536d915698f58d5c5c6b7a:./*kefile'

这个错误似乎更好。)

我在git结账时尝试了通配符。。。

git checkout 命令接受 路径规范 as documented not-quite-so-well here 并在 the gitglossary . 默认情况下,它们确实接受通配符匹配。