Ale*_*hin 5 git commit sha
有没有办法获得特定Git提交的文件SHA?
有两个命令可以:
git show COMMIT_VERSION:myfile.txt > ~/tmp/myfile.txt
git hash-object ./tmp/myfile.txt
但是,也许在Git中有特定的命令可以做到这一点?
Ala*_*rry 5
git ls-tree COMMIT_VERSION myfile.txt 似乎在其第三个字段中包含相同的结果.
git ls-tree COMMIT_VERSION myfile.txt
归档时间:
13 年 前
查看次数:
1686 次
最近记录: