FAQ Get,update GIT project sources: Difference between revisions

Jump to navigation Jump to search
Line 15: Line 15:
To get sources with goal to edit them, you need a GitHub write access to the GIT remote repository, and a GIT client (GIT command line tool with Linux, or the GIT client in Eclipse).
To get sources with goal to edit them, you need a GitHub write access to the GIT remote repository, and a GIT client (GIT command line tool with Linux, or the GIT client in Eclipse).


First add repostiroy on your GIT client tool.
First, enter value of the repository with reference sources into your GIT client tool.
With Eclipse, choose "Clone GIT repository" for this GIT URL:
With Eclipse, choose "Clone GIT repository". Enter GIT URL of project to get.
GIT Url for Dolibarr official source is:
<source lang="ini">
git://github.com/Dolibarr/dolibarr.git
git://github.com/Dolibarr/dolibarr.git
</source>


Choose the branches you are interesting in. Branches not selected now could be selected later by doing a "Fetch" from the "Remotes" view.
Your GIT client will ask you to choose the branches you are interesting in. Branches not selected now could be selected later by doing a "Fetch" from the "Remotes" view, so try to choose only the branch you need. This will save you time and problems later.


Then, create a PHP project from Eclipse assistant. Choose "Create from existing project" and select directory that is your GIT local repository.
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.


Then right click on project and Choose "Team - Share". Select GIT and select project available into list.
Once download is finished, create a PHP project from your Eclipse 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".


=Get last version of sources using a full GIT access=
=Get last version of sources using a full GIT access=

Navigation menu