From f50607315286557264b6cd44aacc30101df06ef2 Mon Sep 17 00:00:00 2001 From: Greg Walden Date: Wed, 15 Nov 2017 10:57:11 -0500 Subject: [PATCH] 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 --- README.md | 4 ++-- README_zh-cn.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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