I'm looking for the equivalent of svn export in git. But I actually want to export only one subdir. My structure looks like this:
/db
/html
/tools
...
I want to export only the /html dir in the repo, from given branch (let's say master) to some directory on the fs but without the internal .git dirs and omitting the files under .gitignore files. Ideally something like:
cd my_repo_dir
git export master/html/* /var/www/my_website_docroot
Can I do this and how?
 
    