vlad-deployer

git archive vs cp -R

孤街浪徒 提交于 2020-01-03 18:06:05
问题 If I have a clone of a git repository as a cached copy on a remote server for capistrano/vlad style deployment, is it better to do A) git archive --format=tar origin/master | (cd #{destination} && tar xf -) or B) cp -R cached-copy #{destination} && rm -Rf #{destination}/.git To clarify, the repository is already on the remote server, and I just want to copy a particular version to a releases directory on the same server during deployment. 回答1: I'd say actually rsync -avP /local/repo/* server:

git archive vs cp -R

試著忘記壹切 提交于 2020-01-03 18:00:14
问题 If I have a clone of a git repository as a cached copy on a remote server for capistrano/vlad style deployment, is it better to do A) git archive --format=tar origin/master | (cd #{destination} && tar xf -) or B) cp -R cached-copy #{destination} && rm -Rf #{destination}/.git To clarify, the repository is already on the remote server, and I just want to copy a particular version to a releases directory on the same server during deployment. 回答1: I'd say actually rsync -avP /local/repo/* server: