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:
parent
e51ba1db7d
commit
f506073152
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user