diff --git a/PR/2023/docs/how-to-experience.md b/pr/primary/docs/how-to-experience.md similarity index 56% rename from PR/2023/docs/how-to-experience.md rename to pr/primary/docs/how-to-experience.md index 1573147ef8579ad73fa93711b8d8ac1a8719ac21..8a1be97ead9de589424853f6d18e6468a13a5d37 100644 --- a/PR/2023/docs/how-to-experience.md +++ b/pr/primary/docs/how-to-experience.md @@ -6,12 +6,34 @@ 1. [注册Gitee账号](https://gitee.com/signup)并设置好**提交邮箱**。 + 通常,可以在自己个人主页的URL(统一资源定位符,Uniform Resource Locator)中查看**Gitee账号**(即**Gitee ID**),如下例所示: + + ![GiteeID](./images/gitee_id.png "GiteeID") + + + + 可以到“设置 | 邮箱管理”页面中查看自己的**提交邮箱**,如下例所示: + + ![提交邮箱](./images/submission_email.png "提交邮箱") + + + 2. [签署个人CLA](https://clasign.osinfra.cn/sign/Z2l0ZWUlMkZvcGVuZXVsZXI=)。 + ![签署个人CLA](./images/sign_individual_cla.png "签署个人CLA") + 注意:签署CLA的邮箱地址应该与Gitee账号关联的**提交邮箱**地址保持一致。 + + 3. 参考[Git官网](https://git-scm.com/downloads)安装好git工具软件。 + ![Git工具软件](./images/git_logo@2x.png "Git工具软件") + + 注意:如果您已经有了可以使用Git工具软件的命令行/图形环境(如Linux、macOS等),则可以略过这一步。 + + + 4. 在自己的PC机上配置好git账号,譬如: ```shell @@ -26,10 +48,14 @@ 1. 将[此实验的上游仓库](https://gitee.com/openeuler/git-basics)fork到自己的Gitee账号下。 -2. 将自己Gitee账号下的这个远端(remote)仓库“git clone”到本地PC。 + ![fork](./images/fork.png "fork") + + + +2. 将自己Gitee账号下的这个远程(remote)仓库“git clone”到本地PC。 ```shell - # 注意:请从您自己的远端仓库上下载 + # 注意:请从您自己的远程仓库上下载 git clone https://gitee.com/woodrabbit/git-basics.git cd git-basics git branch @@ -51,7 +77,7 @@ 4. 进入我们这个实验的工作目录并以自己的Gitee-ID为名建立空文件。 ```shell - cd ./PR/2023 # 我们的修改都在这个目录进行,并且注意不要修改该目录下的其他文件 + cd ./pr/primary/ # 我们的修改都在这个目录进行,并且注意不要修改该目录下的其他文件 cd . > woodrabbit # 以此方法建立以自己Gitee-ID为名的空文件 ``` @@ -66,7 +92,7 @@ -6. 将此提交推送(**push**)到自己的远端仓库。 +6. 将此提交推送(**push**)到自己的远程仓库。 ```shell git push # 第一次push时,这个命令会报错 @@ -78,21 +104,28 @@ -7. 在自己远端仓库的页面中新建PR,请求(**request**)上游仓库的master分支拉取(**pull**)自己新建分支(本例为*woodrabbit*)的更新。 +7. 在自己远程仓库的页面中新建PR,请求(**request**)上游仓库的master分支拉取(**pull**)自己新建分支(本例为*woodrabbit*)的更新。 -8. 在[上游仓库](https://gitee.com/openeuler/git-basics/pulls)中查看自己提交的PR并等待maintainer进行合入。 +8. [在上游仓库中查看](https://gitee.com/openeuler/git-basics/pulls)自己提交的PR并等待maintainer进行合入。 ## 如何运行仓库中的程序 -可以运行仓库中的main.c程序以观看提交后的效果。该main程序可以在Linux和类UNIX的macOS上运行。在Windows上,您可以[安装openEuler WSL sideload]([如何使用openEuler WSL sideload](https://www.openeuler.org/zh/blog/waaagh/如何使用openEuler的WSL sideload.html))以运行该程序。编译和运行该程序的命令如下所示: +可以运行仓库中的main.c程序以观看提交后的效果。该main程序可以在Linux和类UNIX的macOS上运行。在Windows上,您可以看一下[openEuler开源创新实践课](https://gitee.com/openeuler/lfs-course/tree/master/lfs-7.7-systemd)中是如何创建虚拟机并安装openEuler操作系统以运行程序的。编译和运行该程序的命令如下所示: ```shell -cd PR/2023/src/ +cd pr/primary/src/ gcc main.c ./a.out ``` 这样,凡是正确提交并被合入PR了的Gitee ID都可以在电脑屏幕上被打印出来……:) + + +## 附1:Git参考书籍 + +- [英文版](https://git-scm.com/book/en/v2) +- [简体中文版](https://git-scm.com/book/zh/v2) +- [繁体中文版](https://git-scm.com/book/zh-tw/v2) diff --git a/PR/2023/docs/how-to-pr.md b/pr/primary/docs/how-to-pr.md similarity index 100% rename from PR/2023/docs/how-to-pr.md rename to pr/primary/docs/how-to-pr.md diff --git a/pr/primary/docs/images/fork.png b/pr/primary/docs/images/fork.png new file mode 100644 index 0000000000000000000000000000000000000000..4789f704a3dc55782dbb9737795518dbacf4e581 Binary files /dev/null and b/pr/primary/docs/images/fork.png differ diff --git a/pr/primary/docs/images/git_logo@2x.png b/pr/primary/docs/images/git_logo@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..f4518b1095723693de90eae4a795b37052c9fafa Binary files /dev/null and b/pr/primary/docs/images/git_logo@2x.png differ diff --git a/pr/primary/docs/images/gitee_id.png b/pr/primary/docs/images/gitee_id.png new file mode 100644 index 0000000000000000000000000000000000000000..e0ee21fce33e004eedaf26622d08d844d258c4c0 Binary files /dev/null and b/pr/primary/docs/images/gitee_id.png differ diff --git a/PR/2023/docs/images/macos-key.png b/pr/primary/docs/images/macos-key.png similarity index 100% rename from PR/2023/docs/images/macos-key.png rename to pr/primary/docs/images/macos-key.png diff --git a/PR/2023/docs/images/pr.png b/pr/primary/docs/images/pr.png similarity index 100% rename from PR/2023/docs/images/pr.png rename to pr/primary/docs/images/pr.png diff --git a/pr/primary/docs/images/sign_individual_cla.png b/pr/primary/docs/images/sign_individual_cla.png new file mode 100644 index 0000000000000000000000000000000000000000..4a03e13400da19b37c2ad5d2ad83dfdea2a8d8c0 Binary files /dev/null and b/pr/primary/docs/images/sign_individual_cla.png differ diff --git a/pr/primary/docs/images/submission_email.png b/pr/primary/docs/images/submission_email.png new file mode 100644 index 0000000000000000000000000000000000000000..3269acb5359ab0470015836f412d5301e8255b63 Binary files /dev/null and b/pr/primary/docs/images/submission_email.png differ diff --git a/PR/2023/docs/images/windows-key.png b/pr/primary/docs/images/windows-key.png similarity index 100% rename from PR/2023/docs/images/windows-key.png rename to pr/primary/docs/images/windows-key.png diff --git a/PR/2023/src/main.c b/pr/primary/src/main.c similarity index 100% rename from PR/2023/src/main.c rename to pr/primary/src/main.c diff --git a/PR/2023/woodrabbit b/pr/primary/woodrabbit similarity index 100% rename from PR/2023/woodrabbit rename to pr/primary/woodrabbit diff --git a/pr/pro/info.txt b/pr/pro/info.txt new file mode 100644 index 0000000000000000000000000000000000000000..d1e44b98438df239a466a3066551135dcebd2535 --- /dev/null +++ b/pr/pro/info.txt @@ -0,0 +1 @@ +ToDo: 代码提交、特性开发、问题修正、文档写作等的PR。