How do you use git-cache-meta?

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?

  • What does 'git commit' mean when it says 'create mode …' on stdout?
  • Unity Git - Ignore Library
  • Changing commit metadata on all commits
  • git-svn: Keep .svn dir(s)
  • A place to store metadata associated with a git repository?
  • Git with synchronized SVN backup
  • Migrating repositories into Github from Stash/Gitlab
  • Git hooks for metadata storage/retrieval
  • One Solution collect form web for “How do you use git-cache-meta?”

    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 Baby is a git and github fan, let's start git clone.