How do you use git-cache-meta?

I want to keep directory rights in git repository. It seems like one easy way is using git-cache-meta . What is an example and a minimal explanation for its use?

+8
git file-permissions metadata
source share
1 answer

If you reference this git-cache-meta implementation, then all you have to do is make sure the script is in your $ PATH (put it in /usr/local/bin/ or similar) and navigate to the desired repo, and then run:

 $ git-cache-meta --store 

This will save the metadata in a file named .git_cache_meta in rep. Then in another repo instance do:

 $ git-cache-meta --apply 
+5
source share

All Articles