" /> Faire une "export numérique" (comme "export svn)" | 2022 codeprofesseur

Faire une "export numérique" (comme "export svn)"

Mots clés : gitexportgit-archivesvn-exportgit

meilleur 4 Réponses Faire une "export numérique" (comme "export svn)"

vote vote

99

git archive master | tar -x -C /somewhere/else 
git archive master | bzip2 >source-tree.tar.bz2 
git archive --format zip --output /full/path/to/zipfile.zip master  
git checkout-index -a -f --prefix=/destination/path/ 
vote vote

82

git checkout-index -a -f --prefix=/destination/path/ 
vote vote

80

git archive --format=tar \ --remote=ssh://remote_server/remote_repository master | tar -xf - 
git archive --format=tar \ --remote=ssh://remote_server/remote_repository master path1/ path2/ | tar -xv 
vote vote

69

svn export https://github.com/username/repo-name/trunk/ 
svn export https://github.com/username/repo-name/trunk/src/lib/folder 
svn ls https://github.com/jquery/jquery/trunk 
svn ls https://github.com/jquery/jquery/branches/2.1-stable 
svn ls https://github.com/jquery/jquery/tags/2.1.3 

Questions similaires