J'aimerais exporter à partir du référentiel distant github, pas le cloner. Semblable à svn export, je ne veux pas obtenir le dossier .git avec. Je peux contourner ce problème en clonant et en supprimant le dossier .git. Je me demande s'il existe un moyen plus propre?
Je l'ai lu quelque part, vous pouvez utiliser l'archive git pour y parvenir.
Cependant, j'ai les erreurs suivantes..
$ git archive --format=tar --remote=git@github.com:xxx/yyy.git master | tar -xf -
Invalid command: 'git-upload-archive 'xxx/yyy.git''
You appear to be using ssh to clone a git:// URL.
Make sure your core.gitProxy config option and the
GIT_PROXY_COMMAND environment variable are NOT set.
fatal: The remote end hung up unexpectedly
Toute aide est la bienvenue. Merci.