31,040
edits
| Line 57: | Line 57: | ||
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes. | Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes. | ||
Once download is finished, | Once download is finished, you must choose which branch to us to work on. | ||
* With GIT on Command Line Interface; | * With GIT on Command Line Interface; | ||
<source lang="bash"> | <source lang="bash"> | ||
| Line 69: | Line 65: | ||
</source> | </source> | ||
This will create local branch and make checkout automatically. | This will create local branch and make checkout automatically. | ||
* With Eclipse, right click on "Branches - Remotes - The branch you want to duplicate locally". | |||
If you choose "Create Branch", this will duplicate content of branch to work on it locally. | |||
If you Choose "Checkout", this will update the view "Working Directory". | |||
Create Eclipse project: | |||
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing "'''Create from existing project'''" and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch). | If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing "'''Create from existing project'''" and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch). | ||
Then right click on project from your Eclipse workspace and Choose "'''Team - Share'''". Select GIT and click on option "'''Use or create repository in parent folder of project'''". | Then right click on project from your Eclipse workspace and Choose "'''Team - Share'''". Select GIT and click on option "'''Use or create repository in parent folder of project'''". | ||
An alternate method is File->Import, Git->Project from Git, Select the Git repository and Next, Use New project Wizard -> Php project, enter the folder of you GIT local repository. | An alternate method is File->Import, Git->Project from Git, Select the Git repository and Next, Use New project Wizard -> Php project, enter the folder of you GIT local repository. | ||
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot. | Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot. | ||