Differenze tra le versioni di "Clone Remote Repository Git"
m |
m |
||
Riga 6: | Riga 6: | ||
# non creare un Repository con un progetto Eclipse come root. | # non creare un Repository con un progetto Eclipse come root. | ||
+ | ''It is recommended to separate your Git repository from any additional meta-data which Eclipse might create, it is recommended to place your Git repositories outside the Eclipse workspace. Eclipse follows this recommendation and the EGit plug-in proposes a directory outside your workspace. Placing Git repositories directly in the workspace may cause performance issues since the Git support in Eclipse then may need to scan a large number of files reachable under the workspace. | ||
+ | |||
+ | '' | ||
1) selezionare Import dal menu File, cioè File → '''Import''' → Git → Project from Git. | 1) selezionare Import dal menu File, cioè File → '''Import''' → Git → Project from Git. |
Versione delle 14:24, 9 apr 2014
Il presente tutorial mostra come eseguire un check out (clone) in un repository locale Git, partendo da un repository remoto Git.
Come regola generale, tenere in considerazione queste 2 regole (guida Eclipse-Git[1]):
- non creare il Repository all'interno del workspace Eclipse;
- non creare un Repository con un progetto Eclipse come root.
It is recommended to separate your Git repository from any additional meta-data which Eclipse might create, it is recommended to place your Git repositories outside the Eclipse workspace. Eclipse follows this recommendation and the EGit plug-in proposes a directory outside your workspace. Placing Git repositories directly in the workspace may cause performance issues since the Git support in Eclipse then may need to scan a large number of files reachable under the workspace.
1) selezionare Import dal menu File, cioè File → Import → Git → Project from Git.
2) selezionare Clone URI
3) inserire i dati per collegarsi al repository
- HOST: git.netsitech.com
- REPOSITORY PATH: (qui ci va il nome del repository)
- USER: git
- PROTOCOL ssh => rimuovere la dicitura del protocollo SSH comparsa nel campo URI
- URI: quando sono state immessi tutti i campi, l'URI deve comparire nel formato user@gitHost:gitRepository
4) selezionare il branch nel quale si trova il progetto da scaricare
5) indicare il path locale dove salvare il progetto
6) indicare di importare il progetto Eclipse