forked from firstcontributions/first-contributions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Chinese translation for github-desktop-tutorial.md (firstcontribu…
- Loading branch information
1 parent
805e387
commit 2c74b4f
Showing
1 changed file
with
117 additions
and
0 deletions.
There are no files selected for viewing
117 changes: 117 additions & 0 deletions
117
gui-tool-tutorials/translations/github-desktop-tutorial.zh_cn.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) | ||
[<img align="right" width="150" src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/join-slack-team.png">](https://join.slack.com/t/firstcontributors/shared_invite/zt-1hg51qkgm-Xc7HxhsiPYNN3ofX2_I8FA) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) | ||
[![Open Source Helpers](https://www.codetriage.com/roshanjossey/first-contributions/badges/users.svg)](https://www.codetriage.com/roshanjossey/first-contributions) | ||
|
||
# 第一次贡献 | ||
|
||
| <img alt="GitHub Desktop" src="https://desktop.github.com/images/desktop-icon.svg" width="200"> | GitHub Desktop Edition | | ||
| ----------------------------------------------------------------------------------------------- | ---------------------- | | ||
|
||
确实,这有点难。无论你是刚开始学习做某件事,还是第一次尝试与他人合作,都会遇到一些困难。尤其在协作过程中,犯错误总是令人不安。但是,开源的精神就是协作和共同参与。我们致力于为新的开源贡献者简化学习过程和首次贡献的步骤。希望通过我们的努力,让更多的人能够在这个充满活力的社区中发挥自己的能力,实现自己的价值。 | ||
|
||
阅读文章和观看教程确实能够提供一定的帮助,但实际上动手去做,哪怕做砸了也没关系,这样才是最好的学习方式。这个项目就是为指导新手如何做出他们的第一次贡献而设计的。记住,放松心情,你才能学得更好。如果你正在寻找机会做出你的第一次贡献,只需按照下面的简单步骤来做。我们保证,这将是一次有趣的体验。 | ||
|
||
如果你的机器上没有GitHub Desktop,请安装它。(https://desktop.github.com/). | ||
|
||
如果你使用的是1.0之前的GitHub桌面版本,请参考本教程。(github-desktop-old-version-tutorial.md). | ||
|
||
<img align="right" width="300" src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/fork.png" alt="fork this repository" /> | ||
|
||
## Fork这个存储库 | ||
|
||
Fork一个仓库通常是通过点击页面右上角的 "Fork" 按钮实现的。当您点击这个按钮时,系统将在您的账户中创建一个与原始仓库完全相同的副本。这样您就可以在新的副本中进行更改。 | ||
|
||
## 克隆存储库 | ||
|
||
现在将这个repo复制到您的主机上。 | ||
|
||
重要提示:不要克隆原始的repo。克隆fork。 | ||
|
||
为了克隆repo,点击“克隆或下载”,然后点击“在桌面上打开”。 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-clonetodesktop.png" alt="clone this repository" /> | ||
|
||
将打开一个弹出窗口。点击“打开GitHubDesktop.exe”。 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-open-githubdesktop.png" alt="clone this repository" /> | ||
|
||
点击“Open GitHubDesktop.exe”后,将被下载到您的计算机。 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-downloaded.png" alt="clone this repository" /> | ||
|
||
现在,您已经将github中first-contributions库的内容复制到了您的计算机上。 | ||
|
||
## 创建分支 | ||
|
||
现在通过点击顶部的“当前分支”图标创建分支,然后点击“新分支”: | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-create-branch.png" alt="make a branch" /> | ||
|
||
将分支命名为<add-your-name>。例如,add-james-smith。 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-create-branch-name.png" alt="name your branch" /> | ||
|
||
点击“创建分支” | ||
|
||
## 进行必要的更改并提交这些更改 | ||
|
||
现在,转到历史记录选项卡并打开“贡献者”。在文本编辑器中右键单击并打开Md '文件。滚动到页面底部,添加您的名字,然后保存文件。 | ||
|
||
如果你的名字是詹姆斯·史密斯,它应该是这样的。 | ||
|
||
\[James Smith](https://github.com/jamessmith) | ||
|
||
您可以看到对贡献者进行了更改。他们已经被添加到Github桌面。 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-status.png" alt="check status" /> | ||
|
||
现在提交这些更改: | ||
|
||
在_summary_字段中写入消息“Add ' <your-name> ' to contributor list”。 | ||
|
||
将' <your-name> '替换为您的名字 | ||
|
||
点击“Commit to add-your-name”按钮 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-commit1.png" alt="commit your changes" /> | ||
|
||
在底部,您可以看到已经创建了提交 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-commit2.png" alt="commit your changes" /> | ||
|
||
## 将更改推送到github | ||
|
||
点击File->Options,登录到Github.com。输入你的Github用户名和密码 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-sign-in.png" alt="log-in to Github" /> | ||
|
||
点击右上角的“发布”按钮。 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/dt1-publish1.png" alt="push your changes" /> | ||
|
||
## 提交您的更改以供审查 | ||
|
||
如果你去你的仓库在github上,你会看到“比较&拉请求”按钮。点击那个按钮。 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/compare-and-pull.png" alt="create a pull request" /> | ||
|
||
现在提交拉取请求。 | ||
|
||
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/submit-pull-request.png" alt="submit pull request" /> | ||
|
||
很快,我将把您的所有更改合并到这个项目的主分支中。一旦更改合并,您将收到一封通知电子邮件。 | ||
|
||
## 接下来该怎么办? | ||
|
||
恭喜!你刚刚完成了标准的 _fork -> clone -> edit -> PR_ 工作流程,这是你作为贡献者经常会遇到的! | ||
|
||
庆祝你的贡献,并与你的朋友和追随者分享 [web app](https://firstcontributions.github.io#social-share). | ||
|
||
如果您有任何问题或需要帮助,可以加入我们的slack团队。 [Join slack team](https://join.slack.com/t/firstcontributors/shared_invite/zt-1hg51qkgm-Xc7HxhsiPYNN3ofX2_I8FA). | ||
|
||
### [Additional material](../additional-material/git_workflow_scenarios/additional-material.md) | ||
|
||
## 使用其他工具教程 | ||
|
||
[Back to main page](https://github.com/firstcontributions/first-contributions#tutorials-using-other-tools) |