[英]How do you use git-cache-meta?
I want keep directories' permissions in a git repository. 我想在git存储库中保留目录的权限。 It seems that one easy way is using git-cache-meta
. 似乎一种简单的方法是使用git-cache-meta
。 What is an example and a minimal explanation of its use? 它的用法是什么样的例子和最小的解释?
If you're referring to this implementation of git-cache-meta
, then all you need to do is make sure the script is in your $PATH (put it in /usr/local/bin/
or similar) and go to repo you want, then run: 如果您指的是git-cache-meta
这种实现,那么您需要做的就是确保脚本位于$ PATH中(将其放在/usr/local/bin/
或类似内容中)并转到repo you想要,然后运行:
$ git-cache-meta --store
That will store the meta data in a file named .git_cache_meta
in the rep. 这将把元数据存储在rep中名为.git_cache_meta
的文件中。 Then on another instance of the repo, run: 然后在repo的另一个实例上运行:
$ git-cache-meta --apply
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.