Difference between revisions of "FAQ Get,update GIT project sources"
Line 11: | Line 11: | ||
git://github.com/Dolibarr/dolibarr.git | git://github.com/Dolibarr/dolibarr.git | ||
− | Choose the branches you are interesting in. | + | Choose the branches you are interesting in. Branches not selected now could be selected later by doing a "Fetch" from the "Remotes" view. |
=Get last version of sources using a full GIT access= | =Get last version of sources using a full GIT access= |
Revision as of 20:35, 7 August 2011
This is informations on how you can get sources of Dolibar project.
Get last version of sources using a GIT anonymous access
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. With Eclipse, choose "Clone GIT repository" for this GIT URL: git://github.com/Dolibarr/dolibarr.git
Choose the branches you are interesting in. Branches not selected now could be selected later by doing a "Fetch" from the "Remotes" view.
Get last version of sources using a full GIT access
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 repository on your GIT client tool. With Eclipse, choose "Clone GIT repository" for this GIT URL: https://yourgitlogin@github.com/Dolibarr/dolibarr.git
Choose the branches you are interesting in. Branches not selected now could be selected later by doing a "Fetch" from the "Remotes" view.
Once remote repository is linked into your client software, you must create a local branch. From GIT view, rigth click on "Branches - Remotes - The branch you want to duplicate locally". If you Choose "Checkout", this will update the view "Working Directory". If you choose "Create Branch", this will duplicate content of branch to work on it locally.
Get complementary modules
A CVS repository for non official or rare Dolibarr modules is also available into CVS module dolibarrmod
CVSROOT=:ext:yoursavannahlogin@cvs.savannah.nongnu.org:/cvsroot/dolibarr
export CVSROOT
cvs -q checkout -r HEAD dolibarrmod
Update your repository
The command to update files that was caught with previous CVS command:
With linux:
cvs -q update -P -d
With Windows and Tortoise cvs
"C:\Program Files\CVSNT\cvs.exe" -q update -P -d
And to set back all your working directory with same files than on CVS server repository (canceling your local changes):
With linux:
cvs -q update -P -C -d
With Windows and Tortoise cvs
"C:\Program Files\CVSNT\cvs.exe" -q update -P -C -d
May be, you will have to change permissions on directories or files after to make then readable by users of your Dolibarr web server.
Get files for a particular CVS branch
If you want to work on a particular version (with its patches), you must follow same process but you must replace HEAD by name of the branch. For example DOLIBARR_2_2_BRANCH for branch 2.2 or DOLIBARR_2_4_BRANCH for branch 2.4.
Get last version of sources by download
This method allows you to get CVS version of main development branch (called HEAD). This operation consist to get last version of Dolibarr files that are packaged each night into a zip file. For this, go on page with last CVS version of the day.
New files will overwrite old ones. The inconvenient of this method is that you must download and uncompress again all archive file to get updates.