The git command line exports the resources in the commit record to the local

The git command line exports the resources in the commit record to the local


The command is very simple. It should be noted that whether you use git bash here or cmd, you must cd to the upper directory of the .git folder, that is, the root directory of the local warehouse, so that git knows the warehouse you want to operate. that.

cd 本地仓库的根目录
git cat-file --filters 提交log的哈希值:资源的相对路径 > 导出到本地的路径

Guess you like

Origin blog.csdn.net/qq_42541751/article/details/122242708