Skip to content

Commit 088072c

Browse files
committed
Update git
1 parent 33fed0d commit 088072c

File tree

3 files changed

+6
-92
lines changed

3 files changed

+6
-92
lines changed

docs/_sidebar.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
* [Tools](tools/tools.md)
1717
* [Snippets](tools/snippets.md)
1818

19-
* 常用API
20-
* [短链](api/short_url.md)
21-
2219
* 框架
2320
* [Hyperf](framework/hyperf.md)
2421

docs/api/short_url.md

Lines changed: 0 additions & 89 deletions
This file was deleted.

docs/tools/git.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ git branch -r -d origin/<branch_name>
137137
git push origin :<branch_name>
138138
```
139139

140+
## 删除远程不存在但存在本地的分支
141+
142+
```bash
143+
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D
144+
```
145+
140146
## 修改分支名称
141147

142148
```shell

0 commit comments

Comments
 (0)