From c77444385fcee9fb7c89ad15ff5f14dd4fbf1b50 Mon Sep 17 00:00:00 2001 From: YangQi <2419731931@qq.com> Date: Tue, 23 Aug 2022 20:25:10 +0800 Subject: [PATCH 1/2] docs: replace inline code with code blocks --- translations/README-cn.md | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/translations/README-cn.md b/translations/README-cn.md index 3258277..a849293 100644 --- a/translations/README-cn.md +++ b/translations/README-cn.md @@ -188,31 +188,33 @@ 在学习过程中,我使用 GitHub 特殊语法的 markdown 去检查计划的进展,包括使用包含任务进度的任务列表。 -**创建一个新的分支,以便你可以像这样去勾选计划的进展:直接往方括号中填写一个字符 x 即可:[x]**。 +创建一个新的分支,以便你可以像这样去勾选计划的进展:直接往方括号中填写一个字符 x 即可:[x]。 - Fork一个分支,并跟随以下的指令 +```sh +Fork 一个分支,并跟随以下的指令 +``` 通过单击 Fork 按钮来 fork GitHub 仓库:[jwasham/coding-interview-university](https://github.com/jwasham/coding-interview-university) - 克隆项目到本地 +克隆项目到本地 -`git checkout -b progress` +```sh +git clone git@github.com:/coding-interview-university.git +cd coding-interview-university +git checkout -b progress +git remote add jwasham https://github.com/jwasham/coding-interview-university +git fetch --all +``` -`git remote add jwasham https://github.com/jwasham/coding-interview-university` +在你完成了一些修改后,在框框中打 x -`git fetch --all` - - 在你完成了一些修改后,在框框中打 x - -`git add .` - -`git commit -m "Marked x"` - -`git rebase jwasham/main` - -`git push --set-upstream origin progress` - -`git push --force` +```sh +git add . +git commit -m "Marked x" +git rebase jwasham/main +git push --set-upstream origin progress +git push --force +``` [更多关于 Github-flavored markdown 的详情](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown) From d18b4aa79f26f8a1e7355bbb18be3bf628a7586b Mon Sep 17 00:00:00 2001 From: YangQi Date: Wed, 24 Aug 2022 10:29:17 +0800 Subject: [PATCH 2/2] docs: synchronous update --- translations/README-cn.md | 42 ++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/translations/README-cn.md b/translations/README-cn.md index a849293..c55b438 100644 --- a/translations/README-cn.md +++ b/translations/README-cn.md @@ -184,37 +184,33 @@ ## 如何使用它 -下面所有的东西都只是一个概述。因此,你需要由上而下逐一地去处理它。 - 在学习过程中,我使用 GitHub 特殊语法的 markdown 去检查计划的进展,包括使用包含任务进度的任务列表。 -创建一个新的分支,以便你可以像这样去勾选计划的进展:直接往方括号中填写一个字符 x 即可:[x]。 +下面所有的东西都只是一个概述。因此,你需要由上而下逐一地去处理它。 -```sh -Fork 一个分支,并跟随以下的指令 -``` +1. 通过单击 Fork 按钮来 fork GitHub 仓库:`https://github.com/jwasham/coding-interview-university` -通过单击 Fork 按钮来 fork GitHub 仓库:[jwasham/coding-interview-university](https://github.com/jwasham/coding-interview-university) + ![Fork the GitHub repo](https://d3j2pkmjtin6ou.cloudfront.net/fork-button.png) -克隆项目到本地 +2. 克隆项目到本地: -```sh -git clone git@github.com:/coding-interview-university.git -cd coding-interview-university -git checkout -b progress -git remote add jwasham https://github.com/jwasham/coding-interview-university -git fetch --all -``` + ```sh + git clone git@github.com:/coding-interview-university.git + cd coding-interview-university + git checkout -b progress + git remote add jwasham https://github.com/jwasham/coding-interview-university + git fetch --all + ``` -在你完成了一些修改后,在框框中打 x +3. 在你完成了一些修改后,在框框中打 x: -```sh -git add . -git commit -m "Marked x" -git rebase jwasham/main -git push --set-upstream origin progress -git push --force -``` + ```sh + git add . + git commit -m "Marked x" + git rebase jwasham/main + git push --set-upstream origin progress + git push --force + ``` [更多关于 Github-flavored markdown 的详情](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown)