714
edits
No edit summary |
(→克隆) |
||
| Line 61: | Line 61: | ||
</source> | </source> | ||
* | *使用 GIT 命令行客户端 | ||
First setup your git client: | First setup your git client: | ||
| Line 86: | Line 86: | ||
Once download is finished, you must choose which branch to us to work on. | Once download is finished, you must choose which branch to us to work on. | ||
* | *在命令行界面上使用 GIT | ||
<source lang="bash"> | <source lang="bash"> | ||
| Line 108: | Line 108: | ||
[[File:Eclipse php build path.png|240px]] | [[File:Eclipse php build path.png|240px]] | ||
= | =使用GitHub用户权限获取源代码的最新版本= | ||
== | ==前提条件== | ||
*With Eclipse IDE | *With Eclipse IDE | ||
| Line 126: | Line 126: | ||
Then, 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). | Then, 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). | ||
==Fork | ==Fork== | ||
Login to Github, with login you created in previous step. Then go onto page | Login to Github, with login you created in previous step. Then go onto page | ||
| Line 135: | Line 135: | ||
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps. | This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps. | ||
== | ==克隆== | ||
Then process is same as getting sources with anonymous access. | Then process is same as getting sources with anonymous access. | ||
| Line 149: | Line 149: | ||
</source> | </source> | ||
= | =更新您的存储库= | ||
To update your local workspace: | To update your local workspace: | ||
| Line 163: | Line 163: | ||
If you already have commited some files into your local repository, your workspace will be marked as "Merged". | If you already have commited some files into your local repository, your workspace will be marked as "Merged". | ||
All you have to do is make a commit to validate your local repository as including your changes and changes made by others. | All you have to do is make a commit to validate your local repository as including your changes and changes made by others. | ||
*With the GIT Command Line Client Interface: | *With the GIT Command Line Client Interface: | ||
| Line 171: | Line 170: | ||
</source> | </source> | ||
= | =提交并推送您的变更= | ||
To see all changes you made into your working directory and waiting to be added into Git: | To see all changes you made into your working directory and waiting to be added into Git: | ||
| Line 220: | Line 219: | ||
*Choose commit you request inclusion and validate. | *Choose commit you request inclusion and validate. | ||
= | =要求官方项目接受您的变更(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/ | ||
edits