git - How can I skip files in a tar on Ubuntu 10.10 -


What I want to do, is to tap my GIT Master branch and pipe, but leaving some file types and directories. Then this tar file will be unbundled for my web directory.

You can provide a list of paths to the collection

  git Archive -o /tmp/archive.tar - html / images / css / index.htm   

or you git-ls-files git ls -files -z | GAIT-G GIT archive- o /tmp/archive.tar -

GIT-LS-files have the option to exclude files (optionally corresponding to custom-in-directories Files to exclude .gitignore files). man git-ls-files

Comments