Or, if there is only a small number of files in your repository, you
could do something like this:
git archive HEAD -- \
$(git ls-tree -r --name-only HEAD | grep -v '^\.gitignore$')
To really solve this without external tools, git-archive needed to grow
an --exclude option like git-ls-files, though.
René
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html