Skip to content

Commit 0d18e6c

Browse files
committed
Merge branch 'up/fix/git-memo-more2' into chore/all-my-stuffs
2 parents f6bd077 + bdc2889 commit 0d18e6c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/tools/git-memo/git-memo.content.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,26 @@ Add new modifications to the last commit
3535
git commit --amend --no-edit
3636
```
3737

38+
## Branches
39+
40+
Lists all local branches in your repository (use -a for local and remote branches)
41+
42+
```shell
43+
git branch
44+
```
45+
46+
Switch to an existing branch
47+
48+
```shell
49+
git switch [branch name]
50+
```
51+
52+
Create a new branch
53+
54+
```shell
55+
git checkout -b [branch name]
56+
```
57+
3858
## I’ve made a mistake
3959

4060
Change last commit message

src/tools/git-memo/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const tool = defineTool({
66
name: translate('tools.git-memo.title'),
77
path: '/git-memo',
88
description: translate('tools.git-memo.description'),
9-
keywords: ['git', 'push', 'force', 'pull', 'commit', 'amend', 'rebase', 'merge', 'reset', 'soft', 'hard', 'lease'],
9+
keywords: ['git', 'push', 'force', 'pull', 'commit', 'branch', 'switch', 'checkout', 'amend', 'rebase', 'merge', 'reset', 'soft', 'hard', 'lease'],
1010
component: () => import('./git-memo.vue'),
1111
icon: BrandGit,
1212
});

0 commit comments

Comments
 (0)