你如何使用git-cache-meta? [英] How do you use git-cache-meta?

查看:127
本文介绍了你如何使用git-cache-meta?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让目录的权限保存在git仓库中。看来,一个简单的方法是使用 git-cache-meta 。什么是它的用法的一个例子和一个简单的解释?

//gist.github.com/andris9/1978266rel =noreferrer>这个执行 git-cache-meta ,那么你需要做的确保脚本在你的$ PATH中(把它放在 / usr / local / bin / 或类似的地方),然后转到你想要的repo,然后运行:

  $ git-cache-meta --store 

这会将元数据存储在代表中的 .git_cache_meta 文件中。然后在repo的另一个实例上运行:

$ p $ g $ cache $ meta $ app
code>


I want keep directories' permissions in a git repository. It seems that one easy way is using 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 --store

That will store the meta data in a file named .git_cache_meta in the rep. Then on another instance of the repo, run:

$ git-cache-meta --apply

这篇关于你如何使用git-cache-meta?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆