Add github-git-cheat-sheet in zh_TW#932
Conversation
| --- | ||
|
|
||
| {% capture colOne %} | ||
| ## 安装 Git |
There was a problem hiding this comment.
It is subtle, but the "装" here is actually Simplified Chinese. You may use "裝" instead.
|
|
||
| ```$ git branch -d [branch-name]``` | ||
|
|
||
| 删除指定分支 |
There was a problem hiding this comment.
"删" seems to be Simplified Chinese too. You may use "刪" instead.
|
|
||
| 複製 (clone) 一個存在 GitHub 上的倉儲到本機端,其中包含所有檔案、分支與提交(commits) | ||
|
|
||
| ## .gitignore 文件 |
There was a problem hiding this comment.
It means ".gitignore file" which should be ".gitignore 檔".
|
|
||
| ## 同步更改 | ||
|
|
||
| 將本地端的 Git 倉儲與遠端的 GitHub 倉儲進行狀態同步 |
There was a problem hiding this comment.
Please beware of consistency, so it may be "本機端".
|
|
||
| ```$ git merge``` | ||
|
|
||
| 將遠端分支合併到當前本地端的分支 |
|
|
||
| ```$ git push``` | ||
|
|
||
| 將當前本地端的分支上傳到 GitHub |
|
|
||
| ```$ git pull``` | ||
|
|
||
| 讀取 GitHub 遠端分支的對應提交,來更新使用者本地端當前的分支。當使用者接連著下達 `git fetch` 和 `git merge` 的指令,效果等同於直接下達 `git pull` 指令。 |
|
|
||
| ```$ git add [file]``` | ||
|
|
||
| 對文件進行快照,以讓 Git 納入版本控制 |
|
|
||
| ```$ git reset [commit]``` | ||
|
|
||
| 撤銷所有 `[commit]` 後的提交,並在本地端先保留該撤銷內容 |
There was a problem hiding this comment.
I believe "revert" is usually translated to "復原", but it is up to you.
|
|
||
| ```$ git reset [commit]``` | ||
|
|
||
| 撤銷所有 `[commit]` 後的提交,並在本地端先保留該撤銷內容 |
|
|
||
| ```$ git reset --hard [commit]``` | ||
|
|
||
| 撤銷並抹除所有 `[commit]` 後的提交 |
|
|
||
| 撤銷並抹除所有 `[commit]` 後的提交 | ||
|
|
||
| > 特別注意!修改版本控制紀錄可能造成不好的後果。如果你需要修改遠端 GitHub 既有的提交,請小心操作。如果你需要幫助,可在社群 [github.community](https://github2.xn--9iqy04at31ba.dpdns.orgmunity) 提出,或連繫 GitHub 窗口。 |
There was a problem hiding this comment.
"Contact support" should be "尋求支援" or something similar. No matter what, the word itself should be "聯絡" or "聯繫".
| ## 術語清單 | ||
|
|
||
| - **git**: 一個開源的分散式版本控制系統 | ||
| - **GitHub**: 一個讓使用者在使用本地端 Git 時,可進行遠端託管和協作管理的平台 |
|
Thanks for the review, @ralphchung! Would you be able to open a pull request with your suggested changes? |
|
Hi @parkerbxyz, I opened #937 for the above suggestions, feel free to review it 😃 |
Overview
TL;DR
Add github-git-cheat-sheet.md in zh_TW and update index.html accordingly.
Questions
No Questions :)
Next Steps
Wait for reviewers' opinions to decide the next steps.
Review
Hi @parkerbxyz @brianamarie, I noticed that you were handling the recent pull requests, so I tagged you here hoping that you can help review this PR. Hope that it doesn't bother you.