Skip to content

Commit 23d5a0f

Browse files
committed
Add bash alias
1 parent 9e22429 commit 23d5a0f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function sidebarOthers()
9595
items: [
9696
{text: "VitePress 初始化", link: "/others/vitepress/getting-started"},
9797
{text: "获取 git 提交的所有文件", link: "/others/git/get-all-files-submitted-by-git"},
98+
{text: "git 别名", link: "/others/git/bash-alias"},
9899
]
99100
}
100101
];

docs/others/git/bash-alias.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# git别名
2+
3+
## 清除暂存区变更
4+
5+
```bash
6+
alias nah='git reset --hard;git clean -df'
7+
```
8+
9+
## 查看工作区状态
10+
11+
```bash
12+
alias gst='git status'
13+
```
14+
15+
## 添加所有变更文件到暂存区
16+
17+
```bash
18+
alias gaa='git add --all'
19+
```
20+
21+
## 获取最新更新
22+
23+
```bash
24+
alias gl='git pull'
25+
```

0 commit comments

Comments
 (0)