Permalink
Browse files

change [aliases] to [alias] (#136)

* change [aliases] to [alias]

Titling the section `aliases` did not work for me. Changing to `[alias]` worked immediately.

Reference: https://git-scm.com/docs/git-config#git-config-alias

* Update README_zh-cn.md
1 parent e51ba1d commit f50607315286557264b6cd44aacc30101df06ef2 @gswalden gswalden committed with RichardLitt Nov 15, 2017
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +2 −2 README_zh-cn.md
View
@@ -960,10 +960,10 @@ If you want to revert to changes made just 1 commit before c5f567, pass the comm
<a name="adding-command-aliases"></a>
### I want to add aliases for some git commands
-On OS X and Linux, your git configuration file is stored in ```~/.gitconfig```. I've added some example aliases I use as shortcuts (and some of my common typos) in the ```[aliases]``` section as shown below:
+On OS X and Linux, your git configuration file is stored in ```~/.gitconfig```. I've added some example aliases I use as shortcuts (and some of my common typos) in the ```[alias]``` section as shown below:
```vim
-[aliases]
+[alias]
a = add
amend = commit --amend
c = commit
View
@@ -916,10 +916,10 @@ $ git update-ref refs/tags/<tag_name> <hash>
<a name="adding-command-aliases"></a>
### 我想给一些Git命令添加别名(alias)
-在 OS X 和 Linux 下, 你的 Git的配置文件储存在 ```~/.gitconfig```。我在```[aliases]``` 部分添加了一些快捷别名(和一些我容易拼写错误的),如下:
+在 OS X 和 Linux 下, 你的 Git的配置文件储存在 ```~/.gitconfig```。我在```[alias]``` 部分添加了一些快捷别名(和一些我容易拼写错误的),如下:
```vim
-[aliases]
+[alias]
a = add
amend = commit --amend
c = commit

0 comments on commit f506073

Please sign in to comment.