How do you use git-cache-meta?

 ̄綄美尐妖づ 提交于 2019-12-09 02:59:32

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/13275000/how-do-you-use-git-cache-meta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!