diff --git a/README.md b/README.md index c9e4a31..c3bd36e 100644 --- a/README.md +++ b/README.md @@ -960,10 +960,10 @@ If you want to revert to changes made just 1 commit before c5f567, pass the comm ### 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 diff --git a/README_zh-cn.md b/README_zh-cn.md index 5dd63d2..ba502a2 100644 --- a/README_zh-cn.md +++ b/README_zh-cn.md @@ -916,10 +916,10 @@ $ git update-ref refs/tags/ ### 我想给一些Git命令添加别名(alias) -在 OS X 和 Linux 下, 你的 Git的配置文件储存在 ```~/.gitconfig```。我在```[aliases]``` 部分添加了一些快捷别名(和一些我容易拼写错误的),如下: +在 OS X 和 Linux 下, 你的 Git的配置文件储存在 ```~/.gitconfig```。我在```[alias]``` 部分添加了一些快捷别名(和一些我容易拼写错误的),如下: ```vim -[aliases] +[alias] a = add amend = commit --amend c = commit