1
0
mirror of https://github.com/k88hudson/git-flight-rules.git synced 2025-03-10 12:48:43 -03:00

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
This commit is contained in:
Greg Walden 2017-11-15 10:57:11 -05:00 committed by Richard Littauer
parent e51ba1db7d
commit f506073152
2 changed files with 4 additions and 4 deletions

View File

@ -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> <a name="adding-command-aliases"></a>
### I want to add aliases for some git commands ### 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 ```vim
[aliases] [alias]
a = add a = add
amend = commit --amend amend = commit --amend
c = commit c = commit

View File

@ -916,10 +916,10 @@ $ git update-ref refs/tags/<tag_name> <hash>
<a name="adding-command-aliases"></a> <a name="adding-command-aliases"></a>
### 我想给一些Git命令添加别名(alias) ### 我想给一些Git命令添加别名(alias)
在 OS X 和 Linux 下, 你的 Git的配置文件储存在 ```~/.gitconfig```。我在```[aliases]``` 部分添加了一些快捷别名(和一些我容易拼写错误的),如下: 在 OS X 和 Linux 下, 你的 Git的配置文件储存在 ```~/.gitconfig```。我在```[alias]``` 部分添加了一些快捷别名(和一些我容易拼写错误的),如下:
```vim ```vim
[aliases] [alias]
a = add a = add
amend = commit --amend amend = commit --amend
c = commit c = commit