如果我有一个Git仓库作为Capistrano的/弗拉德风格部署在远程服务器上缓存副本的克隆,是它更好地做到A)git的存档VS CP -R
git archive --format=tar origin/master | (cd #{destination} && tar xf -)
或B)
cp -R cached-copy #{destination} && rm -Rf #{destination}/.git
为了澄清,该库已经在远程服务器上,我只是想在部署期间的特定版本复制到发布目录在同一台服务器上。
我无法编辑,但第一句末尾有一个错字。它应该是“应该做的更好”,据推测。 – Otto 2008-12-17 04:54:49
更正了错字...谢谢 – ottobar 2008-12-17 05:10:56