31,040
edits
| Line 32: | Line 32: | ||
Once download is finished, go into GIT view - Branches - Local. In most cases, the branch you choosed should be already available. | Once download is finished, go into GIT view - Branches - Local. In most cases, the branch you choosed should be already available. | ||
If not, right click on "Branches - Remotes - The branch you want to duplicate locally". | If not, | ||
* 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 "Create Branch", this will duplicate content of branch to work on it locally. | ||
If you Choose "Checkout", this will update the view "Working Directory". | If you Choose "Checkout", this will update the view "Working Directory". | ||
* With GIT on Command Line Interface; | |||
<source lang="bash"> | |||
git checkout develop | |||
git checkout x.y | |||
</source> | |||
This will create local branch and make checkout automatically. | |||
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'''". | ||