常见问题-获取与更新项目的GIT源代码: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: 2017 source edit
No edit summary
Line 11: Line 11:
[[Category:FAQ ZH]]
[[Category:FAQ ZH]]
{{TemplateDocDevZh}}
{{TemplateDocDevZh}}
This is information on how you can get sources of Dolibarr project.
以下是有关如何检索和使用Dolibarr项目源代码的信息。
Several methods are described, but we recommand using the one based on GitHub.


<br />
介绍了几种方法,但我们建议使用基于GitHub的方法。


=Get last version of sources by tgz download=
=通过下载 tgz 获取源代码的最新版本=
This method can be used by non technical users.
非技术用户可以使用此方法。
It allows you to get sources of main development branch (called HEAD) by just downloading a file: This operation consist to get last version of Dolibarr files that are packaged each night into a tgz file. File is available with link:
 
此方法用于获取主开发分支(称为HEAD)的源代码。此操作包括下载Dolibarr应用程序文件的最新版本,这些文件每晚打包成 tgz 文件。此文件可通过以下链接获得:


{{LinkLastSnapshot}}
{{LinkLastSnapshot}}


New files overwrite old ones.
新文件会覆盖旧文件。这种方法的不便之处在于,每次要获取更新时都必须下载和解压缩包。
The inconvenient of this method is that you must download and uncompress package each time you want to get updates.


Developers should not use this method to get sources but the next one.
开发人员不应使用此方法获取源代码,而应使用下一个方法。


=Get last version of sources using a GIT anonymous access=
=使用GIT匿名访问获取源代码的最新版本=
You can use this method if you don't have any GIT access. With this method, you won't be able to submit any changes, so, if you are a developer, it is recommended to create a GitHub account and use the next method instead of this one.
您可以在没有任何 GIT 访问权限的情况下使用此方法。但使用本方法不能提交任何代码变更,因此,如果您是开发人员,建议创建一个 GitHub 帐户并使用下一个方法而不是本方法。


==Prerequisite==
==前提条件==
 
*使用Eclipse IDE


*With Eclipse IDE
首先,您需要成功安装Eclipse及其 '''EGit''' 插件。


First you must have a working install of Eclipse. '''EGit''' plugin must also have been installed.
要安装 '''EGit''' 插件,请使用Eclipse菜单中的'''帮助''',其次单击'''安装新软件''',然后单击'''可用软件站点'''。在出现的地址清单中,找到链接:
For this, use the '''Find And Install process''' into Eclipse menu, add the GIT update URL:
  https://download.eclipse.org/egit/updates
  https://download.eclipse.org/egit/updates
Then choose to install '''EGit''' (No need to choose JGit)
之后,选择要安装的 '''EGit'''(无需选择 JGit)


*With the GIT Command Line Client Interface
*使用 GIT 命令行客户端


You need to install GIT client (GIT command line tool with Linux installed with "sudo apt-get install git", or the GIT client for Windows found at https://git-scm.com/download/win).
为了检索源代码并对其进行修改,您需要拥有一个GitHub帐户并安装一个GIT客户端(Linux平台的GIT命令行工具使用“sudo apt-get install git”安装,Windows平台的GIT客户端前往 https://git-scm.com/download/win 下载并安装)。


==Clone process==
==克隆==
First, enter value of the repository with reference sources into your GIT client tool.
首先,在 GIT 客户端工具中输入包含引用源的存储库的值。


*With Eclipse, go into perspective GIT, click onto button "Clone GIT repository". Enter GIT URL of project to get.
*使用 Eclipse,进入 GIT,单击“克隆 GIT 存储库”按钮。输入要获取的项目的 GIT URL。


GIT Url for Dolibarr official source is:
GIT Url for Dolibarr official source is:
Line 220: Line 220:
*Choose commit you request inclusion and validate.
*Choose commit you request inclusion and validate.


=Ask official project to include your changes (PR) =
=Ask official project to include your changes (PR)=
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project. We call this "making a pull or a merge request" also called "PR".
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project. We call this "making a pull or a merge request" also called "PR".
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/
714

edits

Navigation menu