Download files from git remote repository -
so thing: i've got process should download files git remote repository , deploy them onto destination server not have git installed on.
in addition, should able download files based on given git tag , head.
what best way such thing?
in order achieve 1 easy copy between git remote repo content , destination, can consider using git archive.
see "git tip of week: git archive"
one key advantage of using git perform archive rather command line tool avoid accidentally capturing (large) .git directory, or work-in-progress content. example, if have run build, zip (tar) include content of build output well.
another advantage can extract content of repository @ an arbitrary revision.
plus, copying 1 file aver network less error-prone rsync'ing large set of files.
Comments
Post a Comment