我在找的等效git
。但我实际上只想导出一个subdir。我的结构是这样的:如何从git分支中导出subdir
/db
/html
/tools
...
我想只导出/html
目录中的回购,从给定分支(假设master
)对FS但没有内部.git
迪尔斯一些目录下省略文件.gitignore
文件。理想的情况是这样的:
cd my_repo_dir
git export master/html/* /var/www/my_website_docroot
我能做到这一点,怎么样?
http://stackoverflow.com/questions/4479960/git-checkout-to-a-specific-folder – nif
感谢的人,我将迎来关闭的复制! – ddinchev
还有http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export。另外,作为选项,您可以随时导出整个回购,然后删除您不需要的所有内容。 – 2013-07-07 20:16:36