Skip to content

Commit

Permalink
文档: 📝 在 README.md 中提供 setgit-cli 预设的 Git 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
iTonyYo committed Jul 3, 2019
1 parent 8bbc8b1 commit 6e207a5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,27 @@ $ yarn global add setgit-cli

[`setgit-cli`][setgit-cli] 从工作目录开始搜索配置,如果在根目录没有找到,会继续搜索子目录,直到找到有效的配置。

默认的配置:
```
{
"core.ignorecase": "false",
"alias.med": "merge develop",
"alias.mem": "merge master",
"alias.le": "!git log --oneline --color | emojify | less -r",
"alias.ls": "ls-files",
"alias.co": "checkout",
"alias.tags": "tag -l",
"alias.stashes": "stash list",
"alias.b": "branch -a -v",
"alias.remotes": "remote -v",
"alias.out": "log @{u}..",
"alias.wdiff": "diff --color-words",
"alias.pull": "pull --ff-only",
"alias.amend": "!git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend",
"alias.fixup": "commit --fixup=HEAD",
}
```

## 贡献指南

仔细查阅 [CONTRIBUTING.md][贡献指南] 以了解详情。
Expand Down

0 comments on commit 6e207a5

Please sign in to comment.