diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a34be0a..49ed307 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ * 在 GitHub 上点击 `fork` 将本仓库 fork 到自己的仓库,如 `yourname/nginx-docs`,然后 `clone` 到本地。 -```sh +```bash $ git clone git@github.com:yourname/nginx-docs.git $ cd nginx-docs # 将项目与上游关联 @@ -13,7 +13,7 @@ $ git remote add source git@github.com:DocsHome/nginx-docs.git * 增加内容或者修复错误后提交,并推送到自己的仓库。 -```sh +```bash $ git add . $ git commit -a "Fix issue #1: change helo to hello" $ git push origin/master @@ -23,7 +23,7 @@ $ git push origin/master * 请定期更新自己仓库内容。 -```sh +```bash $ git fetch source $ git rebase source/master $ git push -f origin master diff --git a/README.md b/README.md index e5b2f64..bbd5d98 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Nginx 中文文档 -[![GitHub stars](https://img.shields.io/github/stars/DocsHome/nginx-docs.svg?style=social&label=Stars)](https://github.com/DocsHome/nginx-docs) [![GitHub contributors](https://img.shields.io/github/contributors/DocsHome/nginx-docs.svg)](https://github.com/DocsHome/nginx-docs) [![GitHub pull requests](https://img.shields.io/github/issues-pr/DocsHome/nginx-docs.svg)](https://github.com/DocsHome/nginx-docs) [![GitHub last commit](https://img.shields.io/github/last-commit/DocsHome/nginx-docs.svg)](https://github.com/DocsHome/nginx-docs) +[![GitHub stars](https://img.shields.io/github/stars/DocsHome/nginx-docs.svg?style=social&label=Stars)](https://github.com/DocsHome/nginx-docs) [![GitHub pull requests](https://img.shields.io/github/issues-pr/DocsHome/nginx-docs.svg)](https://github.com/DocsHome/nginx-docs) [![GitHub last commit](https://img.shields.io/github/last-commit/DocsHome/nginx-docs.svg)](https://github.com/DocsHome/nginx-docs) ![Nginx logo](https://nginx.org/nginx.png)