Comment cloner un dépôt Git dans un dossier spécifique

Mots clés : gitrepositorygit-clonegit

meilleur 5 Réponses Comment cloner un dépôt Git dans un dossier spécifique

vote vote

90

git clone git@github.com:whatever folder-name 
git clone git@github.com:whatever . 
mv /where/it/is/right/now/* /where/I/want/it/ mv /where/it/is/right/now/.* /where/I/want/it/ 
ln -s /where/it/is/right/now /the/path/I/want/to/use 
ln -sfn /opt/projectA/prod/public /httpdocs/public 
ln -sfn /opt/projectA/test/public /httpdocs/public 
vote vote

86

git clone git@github.com:whatever . 
vote vote

72

git clone git@github.com:whatever . 
git init git remote add origin PATH/TO/REPO git fetch git checkout -t origin/master 
vote vote

70

git clone [url] 
$ git clone git://github.com/SU-SWS/open_framework.git 
$ git clone git:github.com/SU-SWS/open_framework.git mynewtheme 
vote vote

52

git -C /httpdocs clone git@github.com:whatever 
cd /httpdocs git clone git@github.com:whatever . 

Questions similaires